16 #ifndef PAAL_FAST_EXP_HPP
17 #define PAAL_FAST_EXP_HPP
32 float clipp = (p < -126) ? -126.0f : p;
36 } v = {
static_cast<uint32_t
>((1 << 23) * (clipp + 126.94269504f)) };
48 static const float multiplier = 1 / std::log(2);
53 #endif // PAAL_FAST_EXP_HPP
float fast_exp(float p)
fast power of e.
float fast_pow2(float p)
fast Power of 2