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

◆ rsqrt()

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

Definition at line 180 of file u12x4.h.

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

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

+ Here is the call graph for this function: