Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
misc.hpp File Reference
#include <boost/multiprecision/detail/bitscan.hpp>
Include dependency graph for misc.hpp:
This graph shows which files directly or indirectly include this file:

Namespaces

 boost
 Duration formatting facet for input.
 
 boost::multiprecision
 
 boost::multiprecision::backends
 

Functions

template<class R , class CppInt >
void boost::multiprecision::backends::check_in_range (const CppInt &val, const mpl::int_< checked > &)
 
template<class R , class CppInt >
void boost::multiprecision::backends::check_in_range (const CppInt &, const mpl::int_< unchecked > &) BOOST_NOEXCEPT
 
void boost::multiprecision::backends::check_is_negative (const mpl::true_ &) BOOST_NOEXCEPT
 
void boost::multiprecision::backends::check_is_negative (const mpl::false_ &)
 
template<class Integer >
Integer boost::multiprecision::backends::negate_integer (Integer i, const mpl::true_ &) BOOST_NOEXCEPT
 
template<class Integer >
Integer boost::multiprecision::backends::negate_integer (Integer i, const mpl::false_ &) BOOST_NOEXCEPT
 
template<class R , unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1 >
enable_if_c< is_integral< R >
::value &&!is_trivial_cpp_int
< cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > >::value, void >
::type 
boost::multiprecision::backends::eval_convert_to (R *result, const cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &backend) BOOST_NOEXCEPT_IF((is_non_throwing_cpp_int< cpp_int_backend< MinBits1
 
 boost::multiprecision::backends::check_in_range< R > (backend, checked_type())
 
 boost::multiprecision::backends::for (unsigned i=1;(i< backend.size())&&(shift< static_cast< unsigned >(std::numeric_limits< R >::digits));++i)
 
 boost::multiprecision::backends::if (backend.sign())
 
template<class R , unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1 >
enable_if_c< is_floating_point
< R >::value
&&!is_trivial_cpp_int
< cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > >::value, void >
::type 
boost::multiprecision::backends::eval_convert_to (R *result, const cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &backend) BOOST_NOEXCEPT_IF(is_arithmetic< R >
 
template<unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1 >
BOOST_MP_FORCEINLINE
enable_if_c
<!is_trivial_cpp_int
< cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > >::value, bool >
::type 
boost::multiprecision::backends::eval_is_zero (const cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &val) BOOST_NOEXCEPT
 
template<unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1 >
BOOST_MP_FORCEINLINE
enable_if_c
<!is_trivial_cpp_int
< cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > >::value, int >
::type 
boost::multiprecision::backends::eval_get_sign (const cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &val) BOOST_NOEXCEPT
 
template<unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1 >
BOOST_MP_FORCEINLINE
enable_if_c
<!is_trivial_cpp_int
< cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > >::value >::type 
boost::multiprecision::backends::eval_abs (cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &result, const cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &val) BOOST_NOEXCEPT_IF((is_non_throwing_cpp_int< cpp_int_backend< MinBits1
 
result boost::multiprecision::backends::sign (false)
 
template<unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1 >
enable_if_c
<!is_trivial_cpp_int
< cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > >::value,
unsigned >::type 
boost::multiprecision::backends::eval_lsb (const cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &a)
 
template<unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1 >
enable_if_c
<!is_trivial_cpp_int
< cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > >::value,
unsigned >::type 
boost::multiprecision::backends::eval_msb (const cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &a)
 
template<unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1 >
enable_if_c
<!is_trivial_cpp_int
< cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > >::value, bool >
::type 
boost::multiprecision::backends::eval_bit_test (const cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &val, unsigned index) BOOST_NOEXCEPT
 
template<unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1 >
enable_if_c
<!is_trivial_cpp_int
< cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > >::value >::type 
boost::multiprecision::backends::eval_bit_set (cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &val, unsigned index)
 
template<unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1 >
enable_if_c
<!is_trivial_cpp_int
< cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > >::value >::type 
boost::multiprecision::backends::eval_bit_unset (cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &val, unsigned index) BOOST_NOEXCEPT
 
template<unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1 >
enable_if_c
<!is_trivial_cpp_int
< cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > >::value >::type 
boost::multiprecision::backends::eval_bit_flip (cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &val, unsigned index)
 
template<unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1 >
enable_if_c
<!is_trivial_cpp_int
< cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > >::value >::type 
boost::multiprecision::backends::eval_qr (const cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &x, const cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &y, cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &q, cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &r) BOOST_NOEXCEPT_IF((is_non_throwing_cpp_int< cpp_int_backend< MinBits1
 
boost::multiprecision::backends::sign (x.sign()!=y.sign())
 
boost::multiprecision::backends::sign (x.sign())
 
template<unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1 >
enable_if_c
<!is_trivial_cpp_int
< cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > >::value >::type 
boost::multiprecision::backends::eval_qr (const cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &x, limb_type y, cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &q, cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &r) BOOST_NOEXCEPT_IF((is_non_throwing_cpp_int< cpp_int_backend< MinBits1
 
template<unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1 , class U >
enable_if_c< is_integral< U >
::value >::type 
boost::multiprecision::backends::eval_qr (const cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &x, U y, cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &q, cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &r) BOOST_NOEXCEPT_IF((is_non_throwing_cpp_int< cpp_int_backend< MinBits1
 
 boost::multiprecision::backends::eval_qr (x, t, q, r)
 
template<unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1 , class Integer >
enable_if_c< is_unsigned
< Integer >::value
&&!is_trivial_cpp_int
< cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > >::value, Integer >
::type 
boost::multiprecision::backends::eval_integer_modulus (const cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &x, Integer val)
 
template<unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1 , class Integer >
BOOST_MP_FORCEINLINE
enable_if_c< is_signed
< Integer >::value
&&!is_trivial_cpp_int
< cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > >::value, Integer >
::type 
boost::multiprecision::backends::eval_integer_modulus (const cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &x, Integer val)
 
limb_type boost::multiprecision::backends::integer_gcd_reduce (limb_type u, limb_type v)
 
template<unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1 >
enable_if_c
<!is_trivial_cpp_int
< cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > >::value >::type 
boost::multiprecision::backends::eval_gcd (cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &result, const cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &a, limb_type v)
 
template<unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1 , class Integer >
enable_if_c< is_unsigned
< Integer >::value &&(sizeof(Integer)
<=sizeof(limb_type))&&!is_trivial_cpp_int
< cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > >::value >::type 
boost::multiprecision::backends::eval_gcd (cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &result, const cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &a, const Integer &v)
 
template<unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1 , class Integer >
enable_if_c< is_signed
< Integer >::value &&(sizeof(Integer)
<=sizeof(limb_type))&&!is_trivial_cpp_int
< cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > >::value >::type 
boost::multiprecision::backends::eval_gcd (cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &result, const cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &a, const Integer &v)
 
template<unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1 >
enable_if_c
<!is_trivial_cpp_int
< cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > >::value >::type 
boost::multiprecision::backends::eval_gcd (cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &result, const cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &a, const cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &b)
 
template<unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1 >
BOOST_MP_FORCEINLINE
enable_if_c
< is_trivial_cpp_int
< cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > >::value >::type 
boost::multiprecision::backends::eval_gcd (cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &result, const cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &a, const cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &b) BOOST_NOEXCEPT
 
template<unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1 >
BOOST_MP_FORCEINLINE
enable_if_c
< is_trivial_cpp_int
< cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > >::value
&&(Checked1==unchecked)>::type 
boost::multiprecision::backends::eval_lcm (cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &result, const cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &a, const cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &b) BOOST_NOEXCEPT_IF((is_non_throwing_cpp_int< cpp_int_backend< MinBits1
 
result boost::multiprecision::backends::normalize ()
 
void boost::multiprecision::backends::conversion_overflow (const mpl::int_< checked > &)
 
void boost::multiprecision::backends::conversion_overflow (const mpl::int_< unchecked > &)
 
template<class R , unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1 >
enable_if_c
< is_trivial_cpp_int
< cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > >::value
&&is_signed_number
< cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > >::value >::type 
boost::multiprecision::backends::eval_convert_to (R *result, const cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &val)
 
template<class R , unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1 >
enable_if_c
< is_trivial_cpp_int
< cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > >::value
&&is_unsigned_number
< cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > >::value >::type 
boost::multiprecision::backends::eval_convert_to (R *result, const cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &val)
 
template<unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1 >
enable_if_c
< is_trivial_cpp_int
< cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > >::value,
unsigned >::type 
boost::multiprecision::backends::eval_lsb (const cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &a)
 
template<unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1 >
enable_if_c
< is_trivial_cpp_int
< cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > >::value,
unsigned >::type 
boost::multiprecision::backends::eval_msb (const cpp_int_backend< MinBits1, MaxBits1, SignType1, Checked1, Allocator1 > &a)
 

Variables

cpp_int_backend< MinBits1,
MaxBits1, SignType1, Checked1,
Allocator1 > 
boost::multiprecision::backends::t (y)