#include <format-inl.h>
Public Member Functions | |
void | align (const bigint &other) |
void | assign (const bigint &other) |
void | assign (uint64_t n) |
void | assign_pow10 (int exp) |
bigint () | |
bigint (uint64_t n) | |
bigint (const bigint &)=delete | |
int | divmod_assign (const bigint &divisor) |
int | num_bigits () const |
template<typename Int > | |
bigint & | operator*= (Int value) |
FMT_NOINLINE bigint & | operator<<= (int shift) |
void | operator= (const bigint &)=delete |
void | square () |
~bigint () | |
Private Types | |
enum | { bigits_capacity = 32 } |
using | bigit = uint32_t |
using | double_bigit = uint64_t |
Private Member Functions | |
void | multiply (uint32_t value) |
void | multiply (uint64_t value) |
bigit | operator[] (int index) const |
bigit & | operator[] (int index) |
void | remove_leading_zeros () |
void | subtract_aligned (const bigint &other) |
void | subtract_bigits (int index, bigit other, bigit &borrow) |
Private Attributes | |
basic_memory_buffer< bigit, bigits_capacity > | bigits_ |
int | exp_ |
Static Private Attributes | |
static FMT_CONSTEXPR_DECL const int | bigit_bits = bits<bigit>::value |
Friends | |
int | add_compare (const bigint &lhs1, const bigint &lhs2, const bigint &rhs) |
int | compare (const bigint &lhs, const bigint &rhs) |
struct | formatter< bigint > |
Definition at line 1230 of file format-inl.h.
|
private |
Definition at line 1234 of file format-inl.h.
|
private |
Definition at line 1235 of file format-inl.h.
|
private |
Enumerator | |
---|---|
bigits_capacity |
Definition at line 1236 of file format-inl.h.
|
inline |
Definition at line 1300 of file format-inl.h.
|
inlineexplicit |
Definition at line 1301 of file format-inl.h.
|
inline |
Definition at line 1302 of file format-inl.h.
|
delete |
|
inline |
Definition at line 1440 of file format-inl.h.
|
inline |
Definition at line 1307 of file format-inl.h.
|
inline |
Definition at line 1315 of file format-inl.h.
|
inline |
Definition at line 1389 of file format-inl.h.
|
inline |
Definition at line 1453 of file format-inl.h.
|
inlineprivate |
Definition at line 1271 of file format-inl.h.
|
inlineprivate |
Definition at line 1282 of file format-inl.h.
|
inline |
Definition at line 1325 of file format-inl.h.
|
inline |
Definition at line 1342 of file format-inl.h.
|
inline |
Definition at line 1327 of file format-inl.h.
|
delete |
|
inlineprivate |
Definition at line 1240 of file format-inl.h.
|
inlineprivate |
Definition at line 1241 of file format-inl.h.
|
inlineprivate |
Definition at line 1253 of file format-inl.h.
|
inline |
Definition at line 1408 of file format-inl.h.
|
inlineprivate |
Definition at line 1260 of file format-inl.h.
Definition at line 1247 of file format-inl.h.
Definition at line 1365 of file format-inl.h.
Definition at line 1348 of file format-inl.h.
Definition at line 1245 of file format-inl.h.
|
staticprivate |
Definition at line 1243 of file format-inl.h.
|
private |
Definition at line 1237 of file format-inl.h.
|
private |
Definition at line 1238 of file format-inl.h.