Antkeeper
0.0.1
|
Compile-time mathematical functions. More...
Functions | |
template<std::unsigned_integral T> | |
consteval T | ceil_log2 (T x) noexcept |
Compile-time ceil(log2(x)) for unsigned integrals. More... | |
template<std::unsigned_integral T> | |
consteval T | exp2 (T x) noexcept |
Compile-time exp2 for unsigned integrals. More... | |
template<std::unsigned_integral T> | |
consteval T | pow (T x, T e) noexcept |
Compile-time pow for unsigned integrals. More... | |
Compile-time mathematical functions.
|
noexcept |
Compile-time ceil(log2(x))
for unsigned integrals.
x | Input value. |
ceil(log2(x))
. Definition at line 38 of file compile.hpp.
|
noexcept |
Compile-time exp2
for unsigned integrals.
x | Input value. |
exp2(x)
. Definition at line 51 of file compile.hpp.
|
noexcept |
Compile-time pow
for unsigned integrals.
x | Base value. |
e | Integral exponent. |
x^e
. Definition at line 65 of file compile.hpp.