- Timestamp:
- Apr 26, 2013, 1:24:59 PM (10 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 3c2c9540b63c2f11ed9fe4817807c8b3e50343186b7484b5930065ac134d995e76335de4928d4e8e
- Parents:
- a44bcfd7437f94c20602b09730efd48bf03c03ba
- Location:
- libpolys
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/coeffs.h
ra44bcf r240295 190 190 /// Inplace: a *= b 191 191 void (*cfInpMult)(number &a, number b, const coeffs r); 192 193 /// Inplace: a += b 194 void (*cfInpAdd)(number &a, number b, const coeffs r); 192 195 193 196 /// maps the bigint i (from dummy == coeffs_BIGINT!!!) into the … … 532 535 { assume(r != NULL); assume(r->cfInpMult!=NULL); r->cfInpMult(a,b,r); } 533 536 537 /// addition of 'a' and 'b'; 538 /// replacement of 'a' by the sum a+b 539 static inline void n_InpAdd(number &a, number b, const coeffs r) 540 { assume(r != NULL); assume(r->cfInpAdd!=NULL); r->cfInpAdd(a,b,r); } 541 534 542 /// return the difference of 'a' and 'b', i.e., a-b 535 543 static inline number n_Sub(number a, number b, const coeffs r) -
libpolys/coeffs/longrat.cc
ra44bcf r240295 2888 2888 //r->cfName = ndName; 2889 2889 r->cfInpMult=nlInpMult; 2890 r->cfInpAdd=nlInpAdd; 2890 2891 r->cfInit_bigint=nlCopyMap; 2891 2892 r->cfCoeffWrite=nlCoeffWrite; -
libpolys/coeffs/numbers.cc
ra44bcf r240295 327 327 n->cfDelete= ndDelete; 328 328 n->cfInpMult=ndInpMult; 329 n->cfInpAdd=ndInpAdd; 329 330 n->cfCopy = ndCopy; 330 331 n->cfIntMod=ndIntMod; /* dummy !! */ -
libpolys/polys/templates/p_Numbers.h
ra44bcf r240295 43 43 44 44 static inline void n_InpAdd_FieldGeneral(number &n1, number n2, const ring r) 45 { n dInpAdd(n1, n2, r->cf); }45 { n_InpAdd(n1, n2, r->cf); } 46 46 47 47 #ifdef HAVE_RINGS … … 57 57 #define n_InpMult_RingGeneral(n1, n2, r) ndInpMult(n1, n2, r->cf) 58 58 static inline void n_InpAdd_RingGeneral(number &n1, number n2, const ring r) 59 { assume(rField_is_Ring(r)); n dInpAdd(n1, n2, r->cf); }59 { assume(rField_is_Ring(r)); n_InpAdd(n1, n2, r->cf); } 60 60 #endif 61 61
Note: See TracChangeset
for help on using the changeset viewer.