- Timestamp:
- Apr 22, 2021, 4:03:15 PM (3 years ago)
- Branches:
- (u'spielwiese', '2a584933abf2a2d3082034c7586d38bb6de1a30a')
- Children:
- 5fd24e69d9cdfcd1040ca93af529563f039efd2c
- Parents:
- 7760bca34e9c98f7c8b022a5aa89971f7d3a4fd7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/numbers.cc
r7760bc r8ea64b 119 119 } 120 120 121 static BOOLEAN ndIsUnit(number a, const coeffs r) { return !r->cfIsZero(a,r); } 121 static BOOLEAN ndIsUnit(number a, const coeffs r) 122 { return r->cfIsOne(a,r)|| r->cfIsMOne(a,r); } 123 static number ndGetUnit(number a, const coeffs r) 124 { return r->cfInit(1,r); } 122 125 #ifdef LDEBUG 123 126 // static void nDBDummy1(number* d,char *, int) { *d=NULL; } … … 409 412 n->cfDivBy = ndDivBy; 410 413 n->cfExtGcd = ndExtGcd; 411 //n->cfGetUnit = (nMapFunc)NULL;414 n->cfGetUnit = ndGetUnit; 412 415 #endif 413 416 … … 436 439 if (n->cfSubringGcd==NULL) n->cfSubringGcd=n->cfGcd; 437 440 438 #ifdef HAVE_RINGS439 if (n->cfGetUnit==NULL) n->cfGetUnit=n->cfCopy;440 #endif441 441 442 442 if(n->cfWriteShort==NULL)
Note: See TracChangeset
for help on using the changeset viewer.