Changeset bc1fdb in git for libpolys/coeffs/modulop.cc
- Timestamp:
- Jul 22, 2011, 6:21:11 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a657104b677b4c461d018cbf3204d72d34ad66a9')
- Children:
- f78059cd3fcf97dca7e3c89d6090636c59cf10d1
- Parents:
- 0461f0957e3e22aad4377388cb89a77d560e0a10
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-07-22 18:21:11+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:53:31+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/coeffs/modulop.cc
r0461f0 rbc1fdb 73 73 74 74 75 #if 076 75 /*2 77 76 * convert a number to an int in (-p/2 .. p/2] 78 * BUG: InConsistent: nInit(nInt(a)) != a, for a in (p/2, p)79 77 */ 80 78 int npInt(number &n, const coeffs r) … … 85 83 else return (int)((long)n); 86 84 } 87 #else88 /*289 * convert a number to an int in [0 .. p)90 */91 int npInt(number &n, const coeffs r)92 {93 assume( n_Test(n, r) );94 95 return (int)(long)n;96 }97 #endif98 85 99 86 number npAdd (number a, number b, const coeffs r)
Note: See TracChangeset
for help on using the changeset viewer.