• Home
  • Raw
  • Download

Lines Matching refs:BigInteger

9 void BigInteger::operator =(const BigInteger &x) {  in operator =()
19 BigInteger::BigInteger(const Blk *b, Index blen, Sign s) : mag(b, blen) { in BigInteger() function in BigInteger
38 BigInteger::BigInteger(const BigUnsigned &x, Sign s) : mag(x) { in BigInteger() function in BigInteger
62 BigInteger::BigInteger(unsigned long x) : mag(x) { sign = mag.isZero() ? zero : positive; } in BigInteger() function in BigInteger
63 BigInteger::BigInteger(unsigned int x) : mag(x) { sign = mag.isZero() ? zero : positive; } in BigInteger() function in BigInteger
64 BigInteger::BigInteger(unsigned short x) : mag(x) { sign = mag.isZero() ? zero : positive; } in BigInteger() function in BigInteger
70 BigInteger::Blk magOf(X x) { in magOf()
73 return BigInteger::Blk(x < 0 ? UX(-x) : x); in magOf()
76 BigInteger::Sign signOf(X x) { in signOf()
77 return (x == 0) ? BigInteger::zero in signOf()
78 : (x > 0) ? BigInteger::positive in signOf()
79 : BigInteger::negative; in signOf()
83 BigInteger::BigInteger(long x) : sign(signOf(x)), mag(magOf<long , unsigned long >(x)) {} in BigInteger() function in BigInteger
84 BigInteger::BigInteger(int x) : sign(signOf(x)), mag(magOf<int , unsigned int >(x)) {} in BigInteger() function in BigInteger
85 BigInteger::BigInteger(short x) : sign(signOf(x)), mag(magOf<short, unsigned short>(x)) {} in BigInteger() function in BigInteger
99 X BigInteger::convertToUnsignedPrimitive() const { in convertToUnsignedPrimitive()
109 X BigInteger::convertToSignedPrimitive() const { in convertToSignedPrimitive()
131 unsigned long BigInteger::toUnsignedLong () const { return convertToUnsignedPrimitive<unsigned lon… in toUnsignedLong()
132 unsigned int BigInteger::toUnsignedInt () const { return convertToUnsignedPrimitive<unsigned int… in toUnsignedInt()
133 unsigned short BigInteger::toUnsignedShort() const { return convertToUnsignedPrimitive<unsigned sho… in toUnsignedShort()
134 long BigInteger::toLong () const { return convertToSignedPrimitive <long , unsig… in toLong()
135 int BigInteger::toInt () const { return convertToSignedPrimitive <int , unsig… in toInt()
136 short BigInteger::toShort () const { return convertToSignedPrimitive <short, unsig… in toShort()
139 BigInteger::CmpRes BigInteger::compareTo(const BigInteger &x) const { in compareTo()
167 BigInteger tmpThis; \
173 void BigInteger::add(const BigInteger &a, const BigInteger &b) { in add()
207 void BigInteger::subtract(const BigInteger &a, const BigInteger &b) { in subtract()
247 void BigInteger::multiply(const BigInteger &a, const BigInteger &b) { in multiply()
284 void BigInteger::divideWithRemainder(const BigInteger &b, BigInteger &q) { in divideWithRemainder()
290 BigInteger tmpB(b); in divideWithRemainder()
366 void BigInteger::negate(const BigInteger &a) { in negate()
377 void BigInteger::operator ++() { in operator ++()
389 void BigInteger::operator ++(int) { in operator ++()
394 void BigInteger::operator --() { in operator --()
406 void BigInteger::operator --(int) { in operator --()