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

◆ rsqrt()

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

Definition at line 163 of file u8x24.h.

163 {
164 return sqrt(x).mValue == 0
165 ? u8x24()
166 : from_raw(static_cast<u32>(1) << FRAC_BITS) / sqrt(x);
167 }
static constexpr FASTLED_FORCE_INLINE u8x24 from_raw(u32 raw) FL_NOEXCEPT
Definition u8x24.h:53
static constexpr int FRAC_BITS
Definition u8x24.h:22
constexpr u8x24() FL_NOEXCEPT=default
static constexpr FASTLED_FORCE_INLINE u8x24 sqrt(u8x24 x) FL_NOEXCEPT
Definition u8x24.h:158
u32 mValue
Definition u8x24.h:184

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

+ Here is the call graph for this function: