#include <biginteger.h>
Public Types | |
typedef uint64_t | Type |
Public Member Functions | |
BigInteger (const BigInteger &rhs) | |
BigInteger (uint64_t u) | |
BigInteger (const char *decimals, size_t length) | |
int | Compare (const BigInteger &rhs) const |
bool | Difference (const BigInteger &rhs, BigInteger *out) const |
size_t | GetCount () const |
Type | GetDigit (size_t index) const |
bool | IsZero () const |
BigInteger & | MultiplyPow5 (unsigned exp) |
BigInteger & | operator*= (uint64_t u) |
BigInteger & | operator*= (uint32_t u) |
BigInteger & | operator+= (uint64_t u) |
BigInteger & | operator<<= (size_t shift) |
BigInteger & | operator= (const BigInteger &rhs) |
BigInteger & | operator= (uint64_t u) |
bool | operator== (const BigInteger &rhs) const |
bool | operator== (const Type rhs) const |
Private Member Functions | |
void | AppendDecimal64 (const char *begin, const char *end) |
void | PushBack (Type digit) |
Static Private Member Functions | |
static uint64_t | MulAdd64 (uint64_t a, uint64_t b, uint64_t k, uint64_t *outHigh) |
static uint64_t | ParseUint64 (const char *begin, const char *end) |
Private Attributes | |
size_t | count_ |
Type | digits_ [kCapacity] |
Static Private Attributes | |
static const size_t | kBitCount = 3328 |
static const size_t | kCapacity = kBitCount / sizeof(Type) |
static const size_t | kTypeBit = sizeof(Type) * 8 |
Definition at line 28 of file biginteger.h.
typedef uint64_t internal::BigInteger::Type |
Definition at line 30 of file biginteger.h.
|
inline |
Definition at line 32 of file biginteger.h.
|
inlineexplicit |
Definition at line 36 of file biginteger.h.
|
inline |
Definition at line 40 of file biginteger.h.
|
inlineprivate |
Definition at line 224 of file biginteger.h.
|
inline |
Definition at line 208 of file biginteger.h.
|
inline |
Definition at line 186 of file biginteger.h.
|
inline |
Definition at line 219 of file biginteger.h.
|
inline |
Definition at line 220 of file biginteger.h.
|
inline |
Definition at line 221 of file biginteger.h.
|
inlinestaticprivate |
Definition at line 249 of file biginteger.h.
|
inline |
Definition at line 162 of file biginteger.h.
|
inline |
Definition at line 87 of file biginteger.h.
|
inline |
Definition at line 105 of file biginteger.h.
|
inline |
Definition at line 70 of file biginteger.h.
|
inline |
Definition at line 128 of file biginteger.h.
|
inline |
Definition at line 55 of file biginteger.h.
|
inline |
Definition at line 64 of file biginteger.h.
|
inline |
Definition at line 154 of file biginteger.h.
|
inline |
Definition at line 158 of file biginteger.h.
|
inlinestaticprivate |
Definition at line 239 of file biginteger.h.
|
inlineprivate |
Definition at line 234 of file biginteger.h.
|
private |
Definition at line 284 of file biginteger.h.
Definition at line 283 of file biginteger.h.
|
staticprivate |
Definition at line 279 of file biginteger.h.
Definition at line 280 of file biginteger.h.
|
staticprivate |
Definition at line 281 of file biginteger.h.