796{
799
803
804
806
808 mpz_init_set_si (r->modBase, 2L);
810 mpz_init (r->modNumber);
811 mpz_pow_ui (r->modNumber, r->modBase, r->modExponent);
812
813
814 r->ch = (int)r->mod2mMask + 1;
815
817
842
850#ifdef LDEBUG
852#endif
853 r->has_simple_Alloc=
TRUE;
855}
@ n_Z2m
only used if HAVE_RINGS is defined
static FORCE_INLINE n_coeffType getCoeffType(const coeffs r)
Returns the type of coeffs domain.
@ n_rep_int
(int), see modulop.h
static number nr2mGcd(number a, number b, const coeffs)
static nMapFunc nr2mSetMap(const coeffs src, const coeffs dst)
static void nr2mWrite(number a, const coeffs r)
static BOOLEAN nr2mIsUnit(number a, const coeffs)
static void nr2mInpAdd(number &a, number b, const coeffs r)
static number nr2mSub(number a, number b, const coeffs r)
static number nr2mLcm(number a, number b, const coeffs)
static BOOLEAN nr2mIsOne(number a, const coeffs)
static number nr2mAnn(number b, const coeffs r)
static number nr2mInit(long i, const coeffs r)
static number nr2mExtGcd(number a, number b, number *s, number *t, const coeffs r)
static number nr2mGetUnit(number k, const coeffs)
static void nr2mInitExp(int m, coeffs r)
static void nr2mPower(number a, int i, number *result, const coeffs r)
static number nr2mInvers(number c, const coeffs r)
static int nr2mDivComp(number as, number bs, const coeffs)
static number nr2mMult(number a, number b, const coeffs r)
static long nr2mInt(number &n, const coeffs r)
static BOOLEAN nr2mDivBy(number a, number b, const coeffs r)
static BOOLEAN nr2mGreaterZero(number k, const coeffs r)
static number nr2mNeg(number c, const coeffs r)
static BOOLEAN nr2mDBTest(number a, const char *f, const int l, const coeffs r)
static number nr2mMod(number a, number b, const coeffs r)
static BOOLEAN nr2mCoeffIsEqual(const coeffs r, n_coeffType n, void *p)
static number nr2mAdd(number a, number b, const coeffs r)
static void nr2mInpMult(number &a, number b, const coeffs r)
static char * nr2mCoeffName(const coeffs cf)
static BOOLEAN nr2mEqual(number a, number b, const coeffs)
static BOOLEAN nr2mGreater(number a, number b, const coeffs r)
static BOOLEAN nr2mIsZero(number a, const coeffs)
static const char * nr2mRead(const char *s, number *a, const coeffs r)
static BOOLEAN nr2mIsMOne(number a, const coeffs r)
static number nr2mDiv(number a, number b, const coeffs r)
static coeffs nr2mQuot1(number c, const coeffs r)