FastLED 3.10.8
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
constexpr s8x24() FL_NO_EXCEPT=default
static constexpr FASTLED_FORCE_INLINE s8x24 from_raw(i32 raw) FL_NO_EXCEPT
Definition s8x24.h:53
static constexpr FASTLED_FORCE_INLINE s8x24 sqrt(s8x24 x) FL_NO_EXCEPT
Definition s8x24.h:205
constexpr FASTLED_FORCE_INLINE s8x24 sqrt() const FL_NO_EXCEPT
Definition s8x24.h:272
i32 mValue
Definition s8x24.h:299

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

+ Here is the call graph for this function: