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

◆ rsqrt() [2/2]

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

Definition at line 211 of file s4x12.h.

211 {
212 return sqrt(x).mValue == 0
213 ? s4x12()
214 : from_raw(SCALE) / sqrt(x);
215 }
constexpr s4x12() FL_NOEXCEPT=default
static constexpr i32 SCALE
Definition s4x12.h:23
static constexpr FASTLED_FORCE_INLINE s4x12 from_raw(i16 raw) FL_NOEXCEPT
Definition s4x12.h:53
constexpr FASTLED_FORCE_INLINE s4x12 sqrt() const FL_NOEXCEPT
Definition s4x12.h:274
static constexpr FASTLED_FORCE_INLINE s4x12 sqrt(s4x12 x) FL_NOEXCEPT
Definition s4x12.h:206
i16 mValue
Definition s4x12.h:301

References s4x12(), FASTLED_FORCE_INLINE, FL_NOEXCEPT, from_raw(), mValue, SCALE, sqrt(), and fl::x.

+ Here is the call graph for this function: