160 if (x.
isZero())
throw "BigInteger::operator /: division by zero";
167 if (x.
isZero())
throw "BigInteger::operator %: division by zero";
196 if (x.
isZero())
throw "BigInteger::operator /=: division by zero";
205 if (x.
isZero())
throw "BigInteger::operator %=: division by zero";
unsigned long toUnsignedLong() const
BigInteger operator%(const BigInteger &x) const
BigInteger operator-() const
BigUnsigned::CmpRes CmpRes
void negate(const BigInteger &a)
BigInteger operator/(const BigInteger &x) const
static const CmpRes greater
CmpRes compareTo(const BigInteger &x) const
void operator%=(const BigInteger &x)
void operator=(const BigInteger &x)
BigInteger operator*(const BigInteger &x) const
bool operator>=(const BigInteger &x) const
const BigUnsigned & getMagnitude() const
void operator*=(const BigInteger &x)
unsigned short toUnsignedShort() const
void operator+=(const BigInteger &x)
bool operator<(const BigInteger &x) const
bool operator>(const BigInteger &x) const
bool operator==(const BigInteger &x) const
X convertToUnsignedPrimitive() const
BigInteger(const BigInteger &x)
static const CmpRes equal
Blk getBlock(Index i) const
void add(const BigInteger &a, const BigInteger &b)
BigInteger(const BigUnsigned &x)
X convertToSignedPrimitive() const
void operator-=(const BigInteger &x)
NumberlikeArray< Blk >::Index Index
BigInteger operator+(const BigInteger &x) const
BigInteger(const Blk *b, Index blen)
Index getCapacity() const
unsigned int toUnsignedInt() const
Index getCapacity() const
Blk getBlock(Index i) const
bool operator<=(const BigInteger &x) const
bool operator!=(const BigInteger &x) const
void divideWithRemainder(const BigInteger &b, BigInteger &q)
void multiply(const BigInteger &a, const BigInteger &b)
void subtract(const BigInteger &a, const BigInteger &b)
void operator/=(const BigInteger &x)