FastLED 3.9.15
Loading...
Searching...
No Matches

◆ rsqrt()

static constexpr FASTLED_FORCE_INLINE u24x8 fl::u24x8::rsqrt ( u24x8 x)
inlinestaticconstexpr

Definition at line 167 of file u24x8.h.

167 {
168 return sqrt(x).mValue == 0
169 ? u24x8()
170 : from_raw(static_cast<u32>(1) << FRAC_BITS) / sqrt(x);
171 }
static constexpr FASTLED_FORCE_INLINE u24x8 from_raw(u32 raw) FL_NOEXCEPT
Definition u24x8.h:52
u32 mValue
Definition u24x8.h:188
constexpr u24x8() FL_NOEXCEPT=default
static constexpr FASTLED_FORCE_INLINE u24x8 sqrt(u24x8 x) FL_NOEXCEPT
Definition u24x8.h:162
static constexpr int FRAC_BITS
Definition u24x8.h:21

References u24x8(), FASTLED_FORCE_INLINE, FL_NOEXCEPT, FRAC_BITS, from_raw(), mValue, sqrt(), and fl::x.

+ Here is the call graph for this function: