#include <format.h>
Public Member Functions | |
FMT_CONSTEXPR20 void | align (const bigint &other) |
FMT_CONSTEXPR20 void | assign (const bigint &other) |
FMT_CONSTEXPR20 void | assign_pow10 (int exp) |
FMT_CONSTEXPR20 | bigint () |
bigint (const bigint &)=delete | |
bigint (uint64_t n) | |
FMT_CONSTEXPR20 auto | divmod_assign (const bigint &divisor) -> int |
FMT_CONSTEXPR20 auto | num_bigits () const -> int |
template<typename Int > | |
FMT_CONSTEXPR20 auto | operator*= (Int value) -> bigint & |
FMT_NOINLINE FMT_CONSTEXPR20 auto | operator<<= (int shift) -> bigint & |
void | operator= (const bigint &)=delete |
template<typename Int > | |
FMT_CONSTEXPR20 void | operator= (Int n) |
FMT_CONSTEXPR20 void | square () |
Private Types | |
enum | { bigits_capacity = 32 } |
using | bigit = uint32_t |
using | double_bigit = uint64_t |
Private Member Functions | |
template<typename UInt , FMT_ENABLE_IF(std::is_same< UInt, uint64_t >::value|| std::is_same< UInt, uint128_t >::value) > | |
FMT_CONSTEXPR20 void | assign (UInt n) |
template<typename UInt , FMT_ENABLE_IF(std::is_same< UInt, uint64_t >::value|| std::is_same< UInt, uint128_t >::value) > | |
FMT_CONSTEXPR20 void | multiply (UInt value) |
FMT_CONSTEXPR20 void | multiply (uint32_t value) |
FMT_CONSTEXPR20 auto | operator[] (int index) -> bigit & |
FMT_CONSTEXPR20 auto | operator[] (int index) const -> bigit |
FMT_CONSTEXPR20 void | remove_leading_zeros () |
FMT_CONSTEXPR20 void | subtract_aligned (const bigint &other) |
FMT_CONSTEXPR20 void | subtract_bigits (int index, bigit other, bigit &borrow) |
Private Attributes | |
basic_memory_buffer< bigit, bigits_capacity > | bigits_ |
int | exp_ |
Static Private Attributes | |
static constexpr const int | bigit_bits = num_bits<bigit>() |
Friends | |
FMT_CONSTEXPR20 auto | add_compare (const bigint &lhs1, const bigint &lhs2, const bigint &rhs) -> int |
FMT_CONSTEXPR20 auto | compare (const bigint &lhs, const bigint &rhs) -> int |
struct | formatter< bigint > |
|
private |
|
private |
|
inline |
|
delete |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
delete |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
friend |
|
friend |
|
private |