MySQL 9.6.0
Source Code Documentation
int_pow.h File Reference

Experimental API header. More...

#include <bit>
#include <concepts>
#include <limits>

Go to the source code of this file.

Namespaces

namespace  mysql
 
namespace  mysql::math
 
namespace  mysql::math::detail
 

Functions

template<class Value_t >
constexpr Value_t mysql::math::int_pow (Value_t base, unsigned exponent)
 Return pow(base, exponent), where the exponent is an integer. More...
 
template<auto base>
requires std::integral<decltype(base)> && (base >= 2)
constexpr unsigned mysql::math::int_log_max ()
 Return the floor of the base-base logarithm of numeric_limits<decltype(base>)>max(). More...
 
template<auto base, unsigned bound, std::unsigned_integral Value_t>
requires std::same_as<decltype(base), Value_t> && (base >= 2)
constexpr unsigned mysql::math::detail::int_log_helper (Value_t value)
 Return the base-base logarithm of value, assuming that value < pow(base, 2 * bound), where bound is a power of two. More...
 
template<auto base, std::unsigned_integral Value_t>
requires std::same_as<decltype(base), Value_t> && (base >= 2)
constexpr unsigned mysql::math::int_log (Value_t value)
 Return the base-base logarithm of value. More...
 

Detailed Description

Experimental API header.