15 #define TEST(expr) do {\
16 cout << "Line " << __LINE__ << ": ";\
19 } catch (const char *err) {\
28 cout <<
"check: Unzapped number!" << endl;
30 cout <<
"check: Capacity inconsistent with length!" << endl;
36 cout <<
"check: Sign should not be zero!" << endl;
38 cout <<
"check: Sign should be zero!" << endl;
277 num.divideWithRemainder(denom, quotient);
321 }
catch (
const char *err) {
322 cout <<
"UNCAUGHT ERROR: " << err << endl;
void setBlock(Index i, Blk newBlock)
BigInteger stringToBigInteger(const std::string &s)
const BigUnsigned & getMagnitude() const
void add(const BigUnsigned &a, const BigUnsigned &b)
const BigUnsigned & check(const BigUnsigned &x)
void setBit(Index bi, bool newBit)
Index getCapacity() const
Blk getBlock(Index i) const
BigUnsigned stringToBigUnsigned(const std::string &s)
void divideWithRemainder(const BigInteger &b, BigInteger &q)
bool getBit(Index bi) const