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

◆ rsqrt() [2/2]

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

Definition at line 255 of file s16x16.h.

255 {
256 return sqrt(x).mValue == 0
257 ? s16x16()
258 : from_raw(SCALE) / sqrt(x);
259 }
static constexpr i32 SCALE
Definition s16x16.h:25
static constexpr FASTLED_FORCE_INLINE s16x16 sqrt(s16x16 x) FL_NO_EXCEPT
Definition s16x16.h:250
i32 mValue
Definition s16x16.h:364
static constexpr FASTLED_FORCE_INLINE s16x16 from_raw(i32 raw) FL_NO_EXCEPT
Definition s16x16.h:56
constexpr FASTLED_FORCE_INLINE s16x16 sqrt() const FL_NO_EXCEPT
Definition s16x16.h:335
constexpr s16x16() FL_NO_EXCEPT=default

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

+ Here is the call graph for this function: