Changeset fe99ed in git for libpolys/coeffs/rintegers.h


Ignore:
Timestamp:
Jul 22, 2014, 12:34:15 PM (9 years ago)
Author:
Claus Fieker <fieker@…>
Branches:
(u'spielwiese', 'e7cc1ebecb61be8b9ca6c18016352af89940b21a')
Children:
4e65f09322d32da3c0c1b29ba2d27d1aaf5a50ff
Parents:
9a6f8c15b898f962115ce36f094aaa7f9dc0be1f
git-author:
Claus Fieker <fieker@mathematik.uni-kl.de>2014-07-22 12:34:15+02:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2014-07-23 13:12:50+02:00
Message:
"fix" the SI==3 case in rintegers and add the missing bits in rmodulon
again
Try a short patch to keep it simple
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/rintegers.h

    r9a6f8c1 rfe99ed  
    1010#include <coeffs/coeffs.h>
    1111
    12 extern int nrzExp;
    13 extern NATNUMBER nrzModul;
     12#if SI_INTEGER_VARIANT == 3
     13#define SR_HDL(A) ((long)(A))
     14#define SR_INT    1L
     15#define INT_TO_SR(INT)  ((number) (((long)INT << 2) + SR_INT))
     16#define SR_TO_INT(SR)   (((long)SR) >> 2)
     17#define n_Z_IS_SMALL(A)     (SR_HDL(A) & SR_INT)
     18#define INT_IS_SMALL(A) ( ((A << 1) >> 1) == A )
     19#endif
     20
     21//extern int nrzExp;
     22//extern NATNUMBER nrzModul;
    1423
    1524BOOLEAN nrzInitChar    (coeffs r,  void * parameter);
Note: See TracChangeset for help on using the changeset viewer.