|
| | GncInt128 () |
| | Default constructor. More...
|
| |
|
template<typename T , std::enable_if_t< std::is_integral< T >::value, bool > = true> |
| | GncInt128 (T lower) |
| |
|
| GncInt128 (uint64_t lower) |
| |
|
template<typename T , typename U , std::enable_if_t<(std::is_integral< T >::value &&std::is_integral< U >::value), bool > = true> |
| | GncInt128 (T upper, U lower, unsigned char flags='\0') |
| | Double-integer constructor template.
|
| |
|
| GncInt128 (int64_t upper, int64_t lower, unsigned char flags='\0') |
| |
|
template<typename T , std::enable_if_t< std::is_integral< T >::value, bool > = true> |
| | GncInt128 (T upper, uint64_t lower) |
| |
|
| GncInt128 (int64_t upper, uint64_t lower, unsigned char flags='\0') |
| |
|
| GncInt128 (uint64_t upper, uint64_t lower, unsigned char flags='\0') |
| |
| GncInt128 & | zero () noexcept |
| | Clear the object. More...
|
| |
| int | cmp (const GncInt128 &b) const noexcept |
| | Compare function. More...
|
| |
| GncInt128 | gcd (GncInt128 b) const noexcept |
| | Computes the Greatest Common Divisor between the object and parameter. More...
|
| |
| GncInt128 | lcm (const GncInt128 &b) const noexcept |
| | Computes the Least Common Multiple between the object and parameter. More...
|
| |
| GncInt128 | pow (unsigned int n) const noexcept |
| | Computes the object raised to the parameter's power. More...
|
| |
| void | div (const GncInt128 &d, GncInt128 &q, GncInt128 &r) const noexcept |
| | Computes a quotient and a remainder, passed as reference parameters. More...
|
| |
| | operator int64_t () const |
| | Explicit conversion to int64_t. More...
|
| |
| | operator uint64_t () const |
| | Explicit conversion to uint64_t. More...
|
| |
| bool | isNeg () const noexcept |
| |
| bool | isBig () const noexcept |
| |
| bool | isOverflow () const noexcept |
| |
| bool | isNan () const noexcept |
| |
| bool | isZero () const noexcept |
| |
| bool | valid () const noexcept |
| |
| unsigned int | bits () const noexcept |
| |
| char * | asCharBufR (char *buf, uint32_t size) const noexcept |
| | Fills a supplied buffer with a representation of the number in base 10. More...
|
| |
|
GncInt128 | abs () const noexcept |
| |
|
GncInt128 | operator- () const noexcept |
| |
|
| operator bool () const noexcept |
| |
|
GncInt128 & | operator++ () noexcept |
| |
|
GncInt128 & | operator++ (int) noexcept |
| |
|
GncInt128 & | operator-- () noexcept |
| |
|
GncInt128 & | operator-- (int) noexcept |
| |
|
GncInt128 & | operator<<= (unsigned int i) noexcept |
| |
|
GncInt128 & | operator>>= (unsigned int i) noexcept |
| |
|
GncInt128 & | operator+= (const GncInt128 &b) noexcept |
| |
|
GncInt128 & | operator-= (const GncInt128 &b) noexcept |
| |
|
GncInt128 & | operator*= (const GncInt128 &b) noexcept |
| |
|
GncInt128 & | operator/= (const GncInt128 &b) noexcept |
| |
|
GncInt128 & | operator%= (const GncInt128 &b) noexcept |
| |
|
GncInt128 & | operator &= (const GncInt128 &b) noexcept |
| |
|
GncInt128 & | operator|= (const GncInt128 &b) noexcept |
| |
|
GncInt128 & | operator^= (const GncInt128 &b) noexcept |
| |
Definition at line 61 of file gnc-int128.hpp.