20 typedef unsigned long Blk;
263 if (x.
isZero())
throw "BigUnsigned::operator /: division by zero";
270 if (x.
isZero())
throw "BigUnsigned::operator %: division by zero";
312 if (x.
isZero())
throw "BigUnsigned::operator /=: division by zero";
321 if (x.
isZero())
throw "BigUnsigned::operator %=: division by zero";
375 throw "BigUnsigned constructor: "
376 "Cannot construct a BigUnsigned from a negative number";
400 throw "BigUnsigned::to<Primitive>: "
401 "Value is too big to fit in the requested type";
410 X x = convertToPrimitive<X>();
414 throw "BigUnsigned::to(Primitive): "
415 "Value is too big to fit in the requested type";
void operator-=(const BigUnsigned &x)
BigUnsigned(const Blk *b, Index blen)
bool operator==(const NumberlikeArray< Blk > &x) const
void operator=(const NumberlikeArray< Blk > &x)
CmpRes compareTo(const BigUnsigned &x) const
bool operator>=(const BigUnsigned &x) const
X convertToPrimitive() const
friend Blk getShiftedBlock(const BigUnsigned &num, Index x, unsigned int y)
void operator&=(const BigUnsigned &x)
bool operator==(const BigUnsigned &x) const
void bitOr(const BigUnsigned &a, const BigUnsigned &b)
BigUnsigned operator*(const BigUnsigned &x) const
void setBlock(Index i, Blk newBlock)
BigUnsigned operator^(const BigUnsigned &x) const
void divideWithRemainder(const BigUnsigned &b, BigUnsigned &q)
void bitShiftLeft(const BigUnsigned &a, int b)
unsigned int toUnsignedInt() const
BigUnsigned operator-(const BigUnsigned &x) const
void initFromPrimitive(X x)
BigUnsigned operator+(const BigUnsigned &x) const
void operator*=(const BigUnsigned &x)
void operator^=(const BigUnsigned &x)
BigUnsigned operator%(const BigUnsigned &x) const
void add(const BigUnsigned &a, const BigUnsigned &b)
friend X convertBigUnsignedToPrimitiveAccess(const BigUnsigned &a)
void operator|=(const BigUnsigned &x)
void subtract(const BigUnsigned &a, const BigUnsigned &b)
BigUnsigned operator|(const BigUnsigned &x) const
unsigned long toUnsignedLong() const
bool operator!=(const BigUnsigned &x) const
BigUnsigned operator&(const BigUnsigned &x) const
NumberlikeArray< Blk >::Index Index
static const unsigned int N
void operator+=(const BigUnsigned &x)
BigUnsigned(int, Index c)
BigUnsigned operator>>(int b) const
void initFromSignedPrimitive(X x)
void setBit(Index bi, bool newBit)
BigUnsigned operator/(const BigUnsigned &x) const
void operator/=(const BigUnsigned &x)
void multiply(const BigUnsigned &a, const BigUnsigned &b)
unsigned short toUnsignedShort() const
void bitAnd(const BigUnsigned &a, const BigUnsigned &b)
void operator=(const BigUnsigned &x)
void bitXor(const BigUnsigned &a, const BigUnsigned &b)
Blk getBlock(Index i) const
BigUnsigned(const BigUnsigned &x)
X convertToSignedPrimitive() const
bool operator<=(const BigUnsigned &x) const
bool operator!=(const NumberlikeArray< Blk > &x) const
void bitShiftRight(const BigUnsigned &a, int b)
bool operator<(const BigUnsigned &x) const
bool operator>(const BigUnsigned &x) const
BigUnsigned operator<<(int b) const
bool getBit(Index bi) const
void operator%=(const BigUnsigned &x)