Template base class for unsigned big integers.
Synopsis
Declared in <arith_uint256.h>
template<unsigned int BITS>
class base_uint;
Member Functions
Name |
Description |
|
Constructors |
Assignment operators |
|
Numeric ordering, treating the value as an unsigned integer rather than a byte blob. |
|
Tests whether the value equals a 64‐bit unsigned number. |
|
Hex encoding of the number (with the most significant digits first). |
|
Returns the low 64 bits of the value. |
|
Returns the value as a human‐readable string. |
|
Returns the position of the highest bit set plus one, or zero if the value is zero. |
|
Converts the value to a double‐precision floating‐point number. |
|
Applies a bitwise AND with another big integer in place. |
|
Multiplication assignment operators |
|
Increment operators |
|
Addition assignment operators |
|
Returns the two's‐complement negation of the value. |
|
Decrement operators |
|
Subtraction assignment operators |
|
Divides this value by another big integer in place. |
|
Shifts the value left by the given number of bits in place. |
|
Shifts the value right by the given number of bits in place. |
|
Bitwise exclusive‐or assignment operators |
|
Bitwise disjunction assignment operators |
|
Returns the bitwise complement of the value. |
|
Returns the size in bytes of the internal representation. |
Protected Data Members
Name |
Description |
Big integer represented with 32‐bit digits, least‐significant first. |
Protected Static Data Members
Name |
Description |
Number of 32‐bit digits used to store the value. |
Specializations
Friends
Name |
Description |
Tests whether a big integer equals a 64‐bit value. |
|
Performs a three‐way comparison of two big integers. |
|
Tests whether two big integers are equal. |
|
Returns the product of a big integer and a 32‐bit value. |
|
Returns the value shifted left by a number of bits. |
|
Returns the value shifted right by a number of bits. |
|
Returns the bitwise XOR of two big integers. |
|
Returns the bitwise AND of two big integers. |
|
Returns the bitwise OR of two big integers. |
|
Returns the quotient of two big integers. |
|
Returns the product of two big integers. |
|
Returns the difference of two big integers. |
|
Returns the sum of two big integers. |
Non-Member Functions
Name |
Description |
Returns the bitwise AND of two big integers. |
|
Returns the product of a big integer and a 32‐bit value. |
|
Returns the product of two big integers. |
|
Returns the sum of two big integers. |
|
Returns the difference of two big integers. |
|
Returns the quotient of two big integers. |
|
Returns the value shifted left by a number of bits. |
|
Performs a three‐way comparison of two big integers. |
|
Tests whether two big integers are equal. |
|
Tests whether a big integer equals a 64‐bit value. |
|
Returns the value shifted right by a number of bits. |
|
Returns the bitwise XOR of two big integers. |
|
Returns the bitwise OR of two big integers. |
Derived Classes
Name |
Description |
256‐bit unsigned big integer. |
Created with MrDocs