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

◆ rsqrt() [2/2]

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

Definition at line 229 of file s16x16.h.

229 {
230 return sqrt(x).mValue == 0
231 ? s16x16()
232 : from_raw(SCALE) / sqrt(x);
233 }
static constexpr FASTLED_FORCE_INLINE s16x16 sqrt(s16x16 x) FL_NOEXCEPT
Definition s16x16.h:224
static constexpr i32 SCALE
Definition s16x16.h:23
constexpr FASTLED_FORCE_INLINE s16x16 sqrt() const FL_NOEXCEPT
Definition s16x16.h:291
constexpr s16x16() FL_NOEXCEPT=default
static constexpr FASTLED_FORCE_INLINE s16x16 from_raw(i32 raw) FL_NOEXCEPT
Definition s16x16.h:54
i32 mValue
Definition s16x16.h:320

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

+ Here is the call graph for this function: