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

◆ rsqrt() [2/2]

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

Definition at line 210 of file s24x8.h.

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

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

+ Here is the call graph for this function: