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

◆ rsqrt()

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

Definition at line 180 of file u16x16.h.

180 {
181 return sqrt(x).mValue == 0
182 ? u16x16()
183 : from_raw(static_cast<u32>(1) << FRAC_BITS) / sqrt(x);
184 }
static constexpr FASTLED_FORCE_INLINE u16x16 sqrt(u16x16 x) FL_NOEXCEPT
Definition u16x16.h:175
u32 mValue
Definition u16x16.h:201
constexpr u16x16() FL_NOEXCEPT=default
static constexpr FASTLED_FORCE_INLINE u16x16 from_raw(u32 raw) FL_NOEXCEPT
Definition u16x16.h:53
static constexpr int FRAC_BITS
Definition u16x16.h:21

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

+ Here is the call graph for this function: