#include <cpp_int.hpp>
Public Types | |
typedef limb_type * | limb_pointer |
typedef const limb_type * | const_limb_pointer |
typedef mpl::int_< Checked > | checked_type |
Public Member Functions | |
BOOST_STATIC_ASSERT_MSG (MinBits > sizeof(double_limb_type)*CHAR_BIT,"Template parameter MinBits is inconsistent with the parameter trivial - did you mistakingly try to override the trivial parameter?") | |
BOOST_STATIC_CONSTANT (unsigned, limb_bits=sizeof(limb_type)*CHAR_BIT) | |
BOOST_STATIC_CONSTANT (limb_type, max_limb_value=~static_cast< limb_type >(0u)) | |
BOOST_STATIC_CONSTANT (limb_type, sign_bit_mask=1u<< (limb_bits-1)) | |
BOOST_STATIC_CONSTANT (unsigned, internal_limb_count=MinBits/limb_bits+(MinBits%limb_bits?1:0)) | |
BOOST_STATIC_CONSTANT (bool, variable=false) | |
BOOST_STATIC_CONSTANT (limb_type, upper_limb_mask=MinBits%limb_bits?(limb_type(1)<< (MinBits%limb_bits))-1:(~limb_type(0))) | |
BOOST_STATIC_ASSERT_MSG (internal_limb_count >=2,"A fixed precision integer type must have at least 2 limbs") | |
BOOST_MP_FORCEINLINE BOOST_CONSTEXPR | cpp_int_base (limb_type i) BOOST_NOEXCEPT |
BOOST_MP_FORCEINLINE BOOST_CONSTEXPR | cpp_int_base (signed_limb_type i) BOOST_NOEXCEPT |
BOOST_MP_FORCEINLINE unsigned | size () const BOOST_NOEXCEPT |
BOOST_MP_FORCEINLINE limb_pointer | limbs () BOOST_NOEXCEPT |
BOOST_MP_FORCEINLINE BOOST_CONSTEXPR const_limb_pointer | limbs () const BOOST_NOEXCEPT |
BOOST_MP_FORCEINLINE BOOST_CONSTEXPR bool | sign () const BOOST_NOEXCEPT |
BOOST_MP_FORCEINLINE void | sign (bool b) BOOST_NOEXCEPT |
typedef mpl::int_<Checked> boost::multiprecision::backends::cpp_int_base< MinBits, MinBits, signed_magnitude, Checked, void, false >::checked_type |
typedef const limb_type* boost::multiprecision::backends::cpp_int_base< MinBits, MinBits, signed_magnitude, Checked, void, false >::const_limb_pointer |
typedef limb_type* boost::multiprecision::backends::cpp_int_base< MinBits, MinBits, signed_magnitude, Checked, void, false >::limb_pointer |
|
inline |
|
inline |
boost::multiprecision::backends::cpp_int_base< MinBits, MinBits, signed_magnitude, Checked, void, false >::BOOST_STATIC_ASSERT_MSG | ( | MinBits | , |
sizeof(double_limb_type)* | CHAR_BIT, | ||
"Template parameter MinBits is inconsistent with the parameter trivial - did you mistakingly try to override the trivial parameter?" | |||
) |
boost::multiprecision::backends::cpp_int_base< MinBits, MinBits, signed_magnitude, Checked, void, false >::BOOST_STATIC_ASSERT_MSG | ( | internal_limb_count >= | 2, |
"A fixed precision integer type must have at least 2 limbs" | |||
) |
boost::multiprecision::backends::cpp_int_base< MinBits, MinBits, signed_magnitude, Checked, void, false >::BOOST_STATIC_CONSTANT | ( | unsigned | , |
limb_bits | = sizeof(limb_type)*CHAR_BIT |
||
) |
boost::multiprecision::backends::cpp_int_base< MinBits, MinBits, signed_magnitude, Checked, void, false >::BOOST_STATIC_CONSTANT | ( | limb_type | , |
max_limb_value | = ~static_cast< limb_type >(0u) |
||
) |
boost::multiprecision::backends::cpp_int_base< MinBits, MinBits, signed_magnitude, Checked, void, false >::BOOST_STATIC_CONSTANT | ( | limb_type | , |
sign_bit_mask | = 1u<< (limb_bits-1) |
||
) |
boost::multiprecision::backends::cpp_int_base< MinBits, MinBits, signed_magnitude, Checked, void, false >::BOOST_STATIC_CONSTANT | ( | unsigned | , |
internal_limb_count | = MinBits/limb_bits+(MinBits%limb_bits?1:0) |
||
) |
boost::multiprecision::backends::cpp_int_base< MinBits, MinBits, signed_magnitude, Checked, void, false >::BOOST_STATIC_CONSTANT | ( | bool | , |
variable | = false |
||
) |
boost::multiprecision::backends::cpp_int_base< MinBits, MinBits, signed_magnitude, Checked, void, false >::BOOST_STATIC_CONSTANT | ( | limb_type | , |
upper_limb_mask | = MinBits%limb_bits?(limb_type(1)<< (MinBits%limb_bits))-1:(~limb_type(0)) |
||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |