 |
My Project
UNKNOWN_GIT_VERSION
|
Go to the source code of this file.
◆ nr2mInitChar()
Definition at line 781 of file rmodulo2m.cc.
796 mpz_init_set_si (r->modBase, 2L);
798 mpz_init (r->modNumber);
799 mpz_pow_ui (r->modNumber, r->modBase, r->modExponent);
802 r->ch = (int)r->mod2mMask + 1;
840 r->has_simple_Alloc=
TRUE;
◆ nr2mMapZp()
Definition at line 618 of file rmodulo2m.cc.
621 unsigned long j = (
unsigned long)1;
622 long ii = (long)from;
623 if (ii < 0) {
j = dst->mod2mMask; ii = -ii; }
624 unsigned long i = (
unsigned long)ii;
625 i =
i & dst->mod2mMask;
627 return (number)
nr2mMult((number)
i, (number)
j, dst);
static FORCE_INLINE n_coeffType getCoeffType(const coeffs r)
Returns the type of coeffs domain.
static BOOLEAN nr2mGreaterZero(number k, const coeffs r)
static number nr2mNeg(number c, const coeffs r)
static number nr2mLcm(number a, number b, const coeffs)
static number nr2mSub(number a, number b, const coeffs r)
static number nr2mAdd(number a, number b, const coeffs r)
static int nr2mDivComp(number as, number bs, const coeffs)
only used if HAVE_RINGS is defined
static number nr2mMult(number a, number b, const coeffs r)
static number nr2mInvers(number c, const coeffs r)
static BOOLEAN nr2mIsUnit(number a, const coeffs)
static void nr2mInitExp(int m, coeffs r)
static number nr2mAnn(number b, const coeffs r)
static number nr2mGcd(number a, number b, const coeffs)
static const char * nr2mRead(const char *s, number *a, const coeffs r)
static number nr2mInit(long i, const coeffs r)
static void nr2mCoeffWrite(const coeffs r, BOOLEAN)
static BOOLEAN nr2mIsMOne(number a, const coeffs r)
static char * nr2mCoeffName(const coeffs cf)
static number nr2mDiv(number a, number b, const coeffs r)
static number nr2mMod(number a, number b, const coeffs r)
static number nr2mGetUnit(number k, const coeffs)
static nMapFunc nr2mSetMap(const coeffs src, const coeffs dst)
static coeffs nr2mQuot1(number c, const coeffs r)
static long nr2mInt(number &n, const coeffs r)
static number nr2mExtGcd(number a, number b, number *s, number *t, const coeffs r)
static BOOLEAN nr2mIsZero(number a, const coeffs)
static BOOLEAN nr2mCoeffIsEqual(const coeffs r, n_coeffType n, void *p)
static void nr2mWrite(number a, const coeffs r)
static char * nr2mCoeffString(const coeffs r)
static BOOLEAN nr2mGreater(number a, number b, const coeffs r)
static BOOLEAN nr2mIsOne(number a, const coeffs)
static BOOLEAN nr2mDivBy(number a, number b, const coeffs r)
BOOLEAN nr2mDBTest(number a, const char *f, const int l, const coeffs r)
static BOOLEAN nr2mEqual(number a, number b, const coeffs)
static void nr2mPower(number a, int i, number *result, const coeffs r)