FastLED 3.10.8
Loading...
Searching...
No Matches

◆ rsqrt() [2/2]

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

Definition at line 211 of file s8x8.h.

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

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

+ Here is the call graph for this function: