#include <extended_int.h>
Public Member Functions | |
| constexpr void | compliment () |
| Convert to the 2's compliment of the number (equivalent to multiplying by -1) | |
| std::string | decimal () const |
| Get the hexadecimal number as a char array. | |
| constexpr std::array< char, 16 *N+3 > | hex (bool fixedWidth=true) const |
| Get the hexadecimal number as a char array. | |
| constexpr | int64N () |
| Empty constructor. | |
| constexpr | int64N (const char *) |
| Create from string. | |
| constexpr | int64N (const int64N &)=default |
| Copy constructor. | |
| template<uint8_t N2> | |
| constexpr | int64N (const int64N< N2 > &) |
| Create from int128. | |
| constexpr | int64N (int rhs) |
| Create from int. | |
| constexpr | int64N (int64_t) |
| Create from int64. | |
| constexpr | int64N (int64N &&)=default |
| Move constructor. | |
| constexpr | int64N (uint64_t) |
| Create from int64. | |
| double | log10 () const |
| Calculate the log base 2. | |
| double | log2 () const |
| Calculate the log base 2. | |
| constexpr | operator bool () const |
| Conversion to bool. | |
| constexpr | operator double () const |
| Conversion to double. | |
| constexpr | operator float () const |
| Conversion to float. | |
| constexpr | operator int () const |
| Conversion to int. | |
| constexpr | operator int64_t () const |
| Conversion to int64. | |
| constexpr | operator long double () const |
| Conversion to long double. | |
| operator std::string () const | |
| Get the string value as a hexadecimal number. | |
| constexpr int64N | operator! () const |
| Overload arimetic operators. | |
| constexpr bool | operator!= (const int64N &) const |
| constexpr bool | operator!= (int) const |
| constexpr int64N & | operator*= (const int64N &) |
| constexpr int64N & | operator+= (const int64_t) |
| constexpr int64N & | operator+= (const int64N &) |
| constexpr int64N & | operator+= (const uint64_t) |
| constexpr int64N & | operator-= (const int64N &) |
| constexpr int64N & | operator/= (const int64N &) |
| constexpr bool | operator< (const int64N &) const |
| constexpr bool | operator< (int) const |
| constexpr int64N & | operator<<= (unsigned) |
| Bitshift operators. | |
| constexpr bool | operator<= (const int64N &) const |
| constexpr bool | operator<= (int) const |
| constexpr int64N< N > & | operator= (const int64N< N > &)=default |
| Assignment operator. | |
| constexpr int64N< N > & | operator= (int64N< N > &&)=default |
| Move operator. | |
| constexpr bool | operator== (const int64N &) const |
| Overload comparison operators. | |
| constexpr bool | operator== (int) const |
| constexpr bool | operator> (const int64N &) const |
| constexpr bool | operator> (int) const |
| constexpr bool | operator>= (const int64N &) const |
| constexpr bool | operator>= (int) const |
| constexpr int64N & | operator>>= (unsigned) |
| constexpr int | sign () const |
| Get the sign of the number. | |
Protected Attributes | |
| uint64_t | data [N] |
Friends | |
| template<uint8_t N2> | |
| class | int64N |
This class provides an arbitrary precision integer
Definition at line 22 of file extended_int.h.
|
constexpr |
Empty constructor.
|
constexprdefault |
Copy constructor.
|
constexprdefault |
Move constructor.
|
explicitconstexpr |
Create from int.
|
explicitconstexpr |
Create from int64.
|
explicitconstexpr |
Create from int64.
|
explicitconstexpr |
Create from int128.
Create from int64N<N>
|
explicitconstexpr |
Create from string.
|
constexpr |
Convert to the 2's compliment of the number (equivalent to multiplying by -1)
| std::string AMP::extended::int64N< N >::decimal | ( | ) | const |
Get the hexadecimal number as a char array.
|
constexpr |
Get the hexadecimal number as a char array.
Referenced by AMP::extended::int64N< N >::operator std::string().
|
inline |
Calculate the log base 2.
Definition at line 124 of file extended_int.h.
References AMP::extended::int64N< N >::log2().
| double AMP::extended::int64N< N >::log2 | ( | ) | const |
Calculate the log base 2.
Referenced by AMP::extended::int64N< N >::log10().
|
constexpr |
Conversion to bool.
|
constexpr |
Conversion to double.
|
constexpr |
Conversion to float.
|
constexpr |
Conversion to int.
|
constexpr |
Conversion to int64.
|
constexpr |
Conversion to long double.
|
inline |
Get the string value as a hexadecimal number.
Definition at line 89 of file extended_int.h.
References AMP::extended::int64N< N >::hex().
|
constexpr |
Overload arimetic operators.
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
Bitshift operators.
|
constexpr |
|
constexpr |
|
constexprdefault |
Assignment operator.
|
constexprdefault |
Move operator.
|
constexpr |
Overload comparison operators.
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
Get the sign of the number.
Definition at line 134 of file extended_int.h.
|
protected |
Definition at line 131 of file extended_int.h.
|
Advanced Multi-Physics (AMP) Oak Ridge National Laboratory Idaho National Laboratory Los Alamos National Laboratory |
This page automatically produced from the source code by Last updated: Tue Mar 10 2026 13:06:42. Comments on this page |