FastLED 3.10.8
Loading...
Searching...
No Matches

◆ scale_pow2_() [1/2]

double fl::detail::scale_pow2_ ( double p,
int k )
inline

Definition at line 116 of file math.cpp.hpp.

116 {
117 const int a = k / 2;
118 const int b = k - a;
119 DoubleBits fa, fb;
120 fa.u = static_cast<u64>(a + 1023) << 52;
121 fb.u = static_cast<u64>(b + 1023) << 52;
122 return (p * fa.f) * fb.f;
123}
fl::u64 u64
Definition stdint.h:220

References fl::detail::DoubleBits::f, fl::FL_NO_EXCEPT, and fl::detail::DoubleBits::u.