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

◆ isqrt32()

FL_OPTIMIZE_FUNCTION constexpr u16 fl::isqrt32 ( u32 x)
inlineconstexpr

Definition at line 53 of file isqrt.h.

53 {
54 return x == 0 ? u16(0)
55 : _isqrt32_step(x, 0, _isqrt32_start(x, u32(1) << 30));
56}
FL_OPTIMIZE_FUNCTION constexpr u16 _isqrt32_step(u32 x, u32 result, u32 bit) FL_NOEXCEPT
Definition isqrt.h:45
FL_OPTIMIZE_FUNCTION constexpr u32 _isqrt32_start(u32 x, u32 bit) FL_NOEXCEPT
Definition isqrt.h:41

References _isqrt32_start(), _isqrt32_step(), FL_NOEXCEPT, FL_OPTIMIZE_FUNCTION, and x.

Referenced by fl::gfx::detail::drawStrokeLineCore(), fl::s12x4::sqrt(), fl::s4x12::sqrt(), fl::s8x8::sqrt(), fl::u12x4::sqrt(), fl::u4x12::sqrt(), fl::u8x8::sqrt(), and fl::fixed_point_base< Derived, IntBits, FracBits >::sqrt_impl().

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