Changeset 9836f6 in git
- Timestamp:
- Jun 6, 2017, 11:55:00 AM (7 years ago)
- Branches:
- (u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
- Children:
- e91901dce5fba3ac4ddf2c91c8a0a1f1f6da2843
- Parents:
- 7b530596c04e94674670d6f56ce78eef6131916c
- Location:
- factory
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/cf_chinese.cc
r7b5305 r9836f6 264 264 void chineseRemainderCached(CFArray &a, CFArray &n, CanonicalForm &xnew, CanonicalForm &prod, CFArray &inv) 265 265 { 266 CanonicalForm p, sum = 0; prod=1;266 CanonicalForm p, sum(0L); prod(1L); 267 267 int i; 268 268 int len=n.size(); -
factory/gfops.cc
r7b5305 r9836f6 54 54 unsigned short * gf_table = 0; 55 55 56 CanonicalForm gf_mipo(0 );56 CanonicalForm gf_mipo(0L); 57 57 58 58 static CanonicalForm intVec2CF ( int degree, int * coeffs, int level ) -
factory/imm.h
r7b5305 r9836f6 64 64 #if 1 65 65 66 inline long imm2int ( const InternalCF * const imm )66 static inline long imm2int ( const InternalCF * const imm ) 67 67 { 68 68 return ((intptr_t)imm) >> 2; 69 69 } 70 70 71 inline InternalCF * int2imm ( long i )71 static inline InternalCF * int2imm ( long i ) 72 72 { 73 73 return (InternalCF*)((i << 2) | INTMARK ); … … 76 76 #else 77 77 78 inline intimm2int ( const InternalCF * const imm )78 static inline long imm2int ( const InternalCF * const imm ) 79 79 { 80 80 // this could be better done by masking the sign bit 81 if ( (( int)((intptr_t)imm)) < 0 )82 return -((-( intptr_t)imm) >> 2);83 else 84 return ( intptr_t)imm >> 2;85 } 86 87 inline InternalCF * int2imm ( long i )81 if ( ((long)(intptr_t)imm)) < 0 ) 82 return -((-(long)(intptr_t)imm) >> 2); 83 else 84 return (long)(intptr_t)imm >> 2; 85 } 86 87 static inline InternalCF * int2imm ( long i ) 88 88 { 89 89 if ( i < 0 )
Note: See TracChangeset
for help on using the changeset viewer.