FastLED 3.9.15
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
static constexpr int FRAC_BITS
Definition u4x12.h:21
static constexpr FASTLED_FORCE_INLINE u4x12 from_raw(u16 raw) FL_NOEXCEPT
Definition u4x12.h:52
constexpr u4x12() FL_NOEXCEPT=default
static constexpr FASTLED_FORCE_INLINE u4x12 sqrt(u4x12 x) FL_NOEXCEPT
Definition u4x12.h:162

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

+ Here is the call graph for this function: