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

◆ rsqrt()

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

Definition at line 169 of file u8x8.h.

169 {
170 return sqrt(x).mValue == 0
171 ? u8x8()
172 : from_raw(static_cast<u16>(1) << FRAC_BITS) / sqrt(x);
173 }
static constexpr int FRAC_BITS
Definition u8x8.h:22
static constexpr FASTLED_FORCE_INLINE u8x8 from_raw(u16 raw) FL_NOEXCEPT
Definition u8x8.h:53
u16 mValue
Definition u8x8.h:191
static constexpr FASTLED_FORCE_INLINE u8x8 sqrt(u8x8 x) FL_NOEXCEPT
Definition u8x8.h:164
constexpr u8x8() FL_NOEXCEPT=default

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

+ Here is the call graph for this function: