Changeset 72e8c1 in git
- Timestamp:
- Jan 17, 2017, 2:55:46 PM (7 years ago)
- Branches:
- (u'spielwiese', '2fa36c576e6a4ddbb1093b43c7f8e9835e17e52a')
- Children:
- 0091f520ce1d05c31263015fbc74956dd9b73454
- Parents:
- f234fb2281d0dac21b1fd712e8f48d04dd80a688
- Location:
- libpolys/coeffs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/longrat.cc
rf234fb2 r72e8c1 966 966 } 967 967 968 number nlGetUnit (number, const coeffs) 969 { 970 return INT_TO_SR(1); 968 number nlGetUnit (number n, const coeffs cf) 969 { 970 if (nlGreaterZero(n,cf)) return INT_TO_SR(1); 971 else return INT_TO_SR(-1); 971 972 } 972 973 … … 2477 2478 return FALSE; 2478 2479 #else 2479 return (a== INT_TO_SR(0));2480 return (a==NULL)|| (a==INT_TO_SR(0)); 2480 2481 #endif 2481 2482 } … … 3327 3328 r->rep=n_rep_gap_rat; 3328 3329 3329 //const int ch = (int)(long)(p);3330 3331 3330 r->nCoeffIsEqual=nlCoeffIsEqual; 3332 3331 //r->cfKillChar = ndKillChar; /* dummy */ -
libpolys/coeffs/modulop.cc
rf234fb2 r72e8c1 560 560 r->nNULL = (number)0; 561 561 r->type = n_Zp; 562 r->ch = c;563 562 r->has_simple_Alloc=TRUE; 564 563 r->has_simple_Inverse=TRUE; -
libpolys/coeffs/rintegers.cc
rf234fb2 r72e8c1 159 159 { 160 160 if (a == NULL) return 0; 161 return ABS(((mpz_ptr)a)->_mp_size);161 return (((mpz_ptr)a)->_mp_alloc); 162 162 } 163 163
Note: See TracChangeset
for help on using the changeset viewer.