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

◆ sqrt_impl() [2/2]

template<typename Derived, int IntBits, int FracBits>
static constexpr FASTLED_FORCE_INLINE Derived fl::fixed_point_base< Derived, IntBits, FracBits >::sqrt_impl ( Derived x,
fl::true_type  )
inlinestaticconstexprprivate

Definition at line 215 of file base.h.

215 {
216 return Derived::from_raw(static_cast<raw_type>(
217 fl::isqrt32(static_cast<u32>(x.mValue) << FRAC_BITS)));
218 }
static constexpr int FRAC_BITS
Definition base.h:38
typename traits::raw_type raw_type
Definition base.h:31
raw_type mValue
Definition base.h:41

References FASTLED_FORCE_INLINE, FRAC_BITS, fl::isqrt32(), and fl::x.

Referenced by sqrt().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: