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

◆ rsqrt() [2/2]

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

Definition at line 210 of file s8x24.h.

210 {
211 return sqrt(x).mValue == 0
212 ? s8x24()
213 : from_raw(SCALE) / sqrt(x);
214 }
static constexpr i32 SCALE
Definition s8x24.h:23
static constexpr FASTLED_FORCE_INLINE s8x24 sqrt(s8x24 x) FL_NOEXCEPT
Definition s8x24.h:205
static constexpr FASTLED_FORCE_INLINE s8x24 from_raw(i32 raw) FL_NOEXCEPT
Definition s8x24.h:53
constexpr FASTLED_FORCE_INLINE s8x24 sqrt() const FL_NOEXCEPT
Definition s8x24.h:272
constexpr s8x24() FL_NOEXCEPT=default
i32 mValue
Definition s8x24.h:299

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

+ Here is the call graph for this function: