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

◆ rsqrt()

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

Definition at line 167 of file u4x12.h.

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

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

+ Here is the call graph for this function: