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

◆ rsqrt()

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

Definition at line 189 of file u16x16.h.

189 {
190 return sqrt(x).mValue == 0
191 ? u16x16()
192 : from_raw(static_cast<u32>(1) << FRAC_BITS) / sqrt(x);
193 }
u32 mValue
Definition u16x16.h:210
static constexpr FASTLED_FORCE_INLINE u16x16 from_raw(u32 raw) FL_NO_EXCEPT
Definition u16x16.h:54
constexpr u16x16() FL_NO_EXCEPT=default
static constexpr FASTLED_FORCE_INLINE u16x16 sqrt(u16x16 x) FL_NO_EXCEPT
Definition u16x16.h:184
static constexpr int FRAC_BITS
Definition u16x16.h:22

References u16x16(), FASTLED_FORCE_INLINE, fl::FL_NO_EXCEPT, FRAC_BITS, from_raw(), mValue, sqrt(), and fl::x.

+ Here is the call graph for this function: