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 | ) |
|
|
constexpr |
Return the base-base logarithm of value, assuming that value < pow(base, 2 * bound), where bound is a power of two.
- Template Parameters
-
| Value_t | Data type |
| base | The base of the logarithm. |
| bound | Power of two, such that value < pow(base, 2 * bound). |
- Parameters
-
- Returns
- the base-
base logarithm of value.