mirror of
https://github.com/boostorg/intrusive.git
synced 2025-08-03 06:24:44 +02:00
Last merge for 1.55 (Intrusive)
[SVN r85703]
This commit is contained in:
@@ -429,6 +429,8 @@ struct sqrt2_pow_max<SizeType, typename enable_if< numbits_eq<SizeType, 32> >::t
|
|||||||
static const std::size_t pow = 31;
|
static const std::size_t pow = 31;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifndef BOOST_NO_INT64_T
|
||||||
|
|
||||||
template <class SizeType>
|
template <class SizeType>
|
||||||
struct sqrt2_pow_max<SizeType, typename enable_if< numbits_eq<SizeType, 64> >::type>
|
struct sqrt2_pow_max<SizeType, typename enable_if< numbits_eq<SizeType, 64> >::type>
|
||||||
{
|
{
|
||||||
@@ -436,6 +438,8 @@ struct sqrt2_pow_max<SizeType, typename enable_if< numbits_eq<SizeType, 64> >::t
|
|||||||
static const std::size_t pow = 63;
|
static const std::size_t pow = 63;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#endif //BOOST_NO_INT64_T
|
||||||
|
|
||||||
// Returns floor(pow(sqrt(2), x * 2 + 1)).
|
// Returns floor(pow(sqrt(2), x * 2 + 1)).
|
||||||
// Defined for X from 0 up to the number of bits in size_t minus 1.
|
// Defined for X from 0 up to the number of bits in size_t minus 1.
|
||||||
inline std::size_t sqrt2_pow_2xplus1 (std::size_t x)
|
inline std::size_t sqrt2_pow_2xplus1 (std::size_t x)
|
||||||
|
Reference in New Issue
Block a user