|
Monero
|
#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) | |
| BigInteger & | operator= (const BigInteger &rhs) |
| BigInteger & | operator= (uint64_t u) |
| BigInteger & | operator+= (uint64_t u) |
| BigInteger & | operator*= (uint64_t u) |
| BigInteger & | operator*= (uint32_t u) |
| BigInteger & | operator<<= (size_t shift) |
| bool | operator== (const BigInteger &rhs) const |
| bool | operator== (const Type rhs) const |
| BigInteger & | MultiplyPow5 (unsigned exp) |
| bool | Difference (const BigInteger &rhs, BigInteger *out) const |
| int | Compare (const BigInteger &rhs) const |
| size_t | GetCount () const |
| Type | GetDigit (size_t index) const |
| bool | IsZero () const |
Private Member Functions | |
| void | AppendDecimal64 (const char *begin, const char *end) |
| void | PushBack (Type digit) |
Static Private Member Functions | |
| static uint64_t | ParseUint64 (const char *begin, const char *end) |
| static uint64_t | MulAdd64 (uint64_t a, uint64_t b, uint64_t k, uint64_t *outHigh) |
Private Attributes | |
| Type | digits_ [kCapacity] |
| size_t | count_ |
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 |
| typedef uint64_t internal::BigInteger::Type |
|
inline |
|
inlineexplicit |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestaticprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestaticprivate |
|
inlineprivate |
|
private |
|
staticprivate |
|
staticprivate |