Agora  1.2.0
Agora project
fmt::v8::detail::bigint Class Reference

#include <format-inl.h>

Collaboration diagram for fmt::v8::detail::bigint:

Public Member Functions

 bigint ()
 
 bigint (uint64_t n)
 
 ~bigint ()
 
 bigint (const bigint &)=delete
 
void operator= (const bigint &)=delete
 
void assign (const bigint &other)
 
void assign (uint64_t n)
 
int num_bigits () const
 
bigintoperator<<= (int shift)
 
template<typename Int >
bigintoperator*= (Int value)
 
void assign_pow10 (int exp)
 
void square ()
 
void align (const bigint &other)
 
int divmod_assign (const bigint &divisor)
 

Private Types

enum  { bigits_capacity = 32 }
 
using bigit = uint32_t
 
using double_bigit = uint64_t
 

Private Member Functions

bigit operator[] (int index) const
 
bigitoperator[] (int index)
 
void subtract_bigits (int index, bigit other, bigit &borrow)
 
void remove_leading_zeros ()
 
void subtract_aligned (const bigint &other)
 
void multiply (uint32_t value)
 
void multiply (uint64_t value)
 

Private Attributes

basic_memory_buffer< bigit, bigits_capacitybigits_
 
int exp_
 

Static Private Attributes

static const int bigit_bits = bits<bigit>::value
 

Friends

struct formatter< bigint >
 
int compare (const bigint &lhs, const bigint &rhs)
 
int add_compare (const bigint &lhs1, const bigint &lhs2, const bigint &rhs)
 

Member Typedef Documentation

◆ bigit

using fmt::v8::detail::bigint::bigit = uint32_t
private

◆ double_bigit

using fmt::v8::detail::bigint::double_bigit = uint64_t
private

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
bigits_capacity 

Constructor & Destructor Documentation

◆ bigint() [1/3]

fmt::v8::detail::bigint::bigint ( )
inline

◆ bigint() [2/3]

fmt::v8::detail::bigint::bigint ( uint64_t  n)
inlineexplicit
Here is the call graph for this function:

◆ ~bigint()

fmt::v8::detail::bigint::~bigint ( )
inline
Here is the call graph for this function:

◆ bigint() [3/3]

fmt::v8::detail::bigint::bigint ( const bigint )
delete

Member Function Documentation

◆ align()

void fmt::v8::detail::bigint::align ( const bigint other)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ assign() [1/2]

void fmt::v8::detail::bigint::assign ( const bigint other)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ assign() [2/2]

void fmt::v8::detail::bigint::assign ( uint64_t  n)
inline
Here is the call graph for this function:

◆ assign_pow10()

void fmt::v8::detail::bigint::assign_pow10 ( int  exp)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ divmod_assign()

int fmt::v8::detail::bigint::divmod_assign ( const bigint divisor)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ multiply() [1/2]

void fmt::v8::detail::bigint::multiply ( uint32_t  value)
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ multiply() [2/2]

void fmt::v8::detail::bigint::multiply ( uint64_t  value)
inlineprivate
Here is the call graph for this function:

◆ num_bigits()

int fmt::v8::detail::bigint::num_bigits ( ) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator*=()

template<typename Int >
bigint& fmt::v8::detail::bigint::operator*= ( Int  value)
inline
Here is the call graph for this function:

◆ operator<<=()

bigint& fmt::v8::detail::bigint::operator<<= ( int  shift)
inline
Here is the call graph for this function:

◆ operator=()

void fmt::v8::detail::bigint::operator= ( const bigint )
delete

◆ operator[]() [1/2]

bigit& fmt::v8::detail::bigint::operator[] ( int  index)
inlineprivate
Here is the call graph for this function:

◆ operator[]() [2/2]

bigit fmt::v8::detail::bigint::operator[] ( int  index) const
inlineprivate
Here is the call graph for this function:

◆ remove_leading_zeros()

void fmt::v8::detail::bigint::remove_leading_zeros ( )
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ square()

void fmt::v8::detail::bigint::square ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ subtract_aligned()

void fmt::v8::detail::bigint::subtract_aligned ( const bigint other)
inlineprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ subtract_bigits()

void fmt::v8::detail::bigint::subtract_bigits ( int  index,
bigit  other,
bigit borrow 
)
inlineprivate
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ add_compare

int add_compare ( const bigint lhs1,
const bigint lhs2,
const bigint rhs 
)
friend

◆ compare

int compare ( const bigint lhs,
const bigint rhs 
)
friend

◆ formatter< bigint >

friend struct formatter< bigint >
friend

Member Data Documentation

◆ bigit_bits

const int fmt::v8::detail::bigint::bigit_bits = bits<bigit>::value
staticprivate

◆ bigits_

basic_memory_buffer<bigit, bigits_capacity> fmt::v8::detail::bigint::bigits_
private

◆ exp_

int fmt::v8::detail::bigint::exp_
private

The documentation for this class was generated from the following file: