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

◆ rsqrt() [2/2]

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

Definition at line 200 of file s12x4.h.

200 {
201 return sqrt(x).mValue == 0
202 ? s12x4()
203 : from_raw(SCALE) / sqrt(x);
204 }
constexpr FASTLED_FORCE_INLINE s12x4 sqrt() const FL_NOEXCEPT
Definition s12x4.h:263
static constexpr FASTLED_FORCE_INLINE s12x4 sqrt(s12x4 x) FL_NOEXCEPT
Definition s12x4.h:195
i16 mValue
Definition s12x4.h:290
static constexpr i32 SCALE
Definition s12x4.h:23
constexpr s12x4() FL_NOEXCEPT=default
static constexpr FASTLED_FORCE_INLINE s12x4 from_raw(i16 raw) FL_NOEXCEPT
Definition s12x4.h:42

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

+ Here is the call graph for this function: