- Timestamp:
- Aug 19, 2016, 4:34:25 PM (8 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- a070b84d59be835a2946d1386edd3221d80f3fe7
- Parents:
- 261ee2613fb64ea86222a19e5adc4673b9bc0175
- Location:
- libpolys/coeffs
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/coeffs.h
r261ee2 r961c76 228 228 (*cfIsZero)(number a, const coeffs r), 229 229 (*cfIsOne)(number a, const coeffs r), 230 // IsMOne is used for printing os polynomials: 231 // -1 is only printed for constant monomials 230 232 (*cfIsMOne)(number a, const coeffs r), 231 233 //GreaterZero is used for printing of polynomials: -
libpolys/coeffs/modulop.cc
r261ee2 r961c76 188 188 n_Test(a, r); 189 189 190 return ((r->npPminus1M == (long)a) &&(1L!=(long)a));190 return ((r->npPminus1M == (long)a) &&(1L!=(long)a))/*for char 2*/; 191 191 } 192 192 -
libpolys/coeffs/rmodulo2m.cc
r261ee2 r961c76 388 388 BOOLEAN nr2mIsMOne(number a, const coeffs r) 389 389 { 390 return ( r->mod2mMask == (unsigned long)a);390 return ((r->mod2mMask == (unsigned long)a) &&(1L!=(long)a))/*for char 2^1*/; 391 391 } 392 392 -
libpolys/coeffs/rmodulon.cc
r261ee2 r961c76 512 512 if (a == NULL) return FALSE; 513 513 #endif 514 if(nrnIsOne(a,r)) return FALSE; // for char 2 514 515 mpz_t t; mpz_init_set(t, (mpz_ptr)a); 515 516 mpz_add_ui(t, t, 1);
Note: See TracChangeset
for help on using the changeset viewer.