Lines Matching refs:BigInteger
20 std::string bigIntegerToString(const BigInteger &x);
22 BigInteger stringToBigInteger(const std::string &s);
26 BigInteger dataToBigInteger(const T* data, BigInteger::Index length, BigInteger::Sign sign);
33 std::ostream &operator <<(std::ostream &os, const BigInteger &x);
51 BigInteger dataToBigInteger(const T* data, BigInteger::Index length, BigInteger::Sign sign) { in dataToBigInteger()
54 unsigned int piecesPerBlock = sizeof(BigInteger::Blk) / sizeof(T); in dataToBigInteger()
58 BigInteger::Blk *blocks = new BigInteger::Blk[numBlocks]; in dataToBigInteger()
60 BigInteger::Index blockNum, pieceNum, pieceNumHere; in dataToBigInteger()
64 BigInteger::Blk curBlock = 0; in dataToBigInteger()
67 curBlock |= (BigInteger::Blk(data[pieceNum]) << (pieceSizeInBits * pieceNumHere)); in dataToBigInteger()
72 BigInteger x(blocks, numBlocks, sign); in dataToBigInteger()