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

◆ _isqrt32_step()

FL_OPTIMIZE_FUNCTION constexpr u16 fl::_isqrt32_step ( u32 x,
u32 result,
u32 bit )
inlineconstexpr

Definition at line 45 of file isqrt.h.

45 {
46 return bit == 0
47 ? static_cast<u16>(result)
48 : (x >= result + bit)
49 ? _isqrt32_step(x - (result + bit), (result >> 1) + bit, bit >> 2)
50 : _isqrt32_step(x, result >> 1, bit >> 2);
51}
FL_OPTIMIZE_FUNCTION constexpr u16 _isqrt32_step(u32 x, u32 result, u32 bit) FL_NOEXCEPT
Definition isqrt.h:45
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31

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

Referenced by _isqrt32_step(), and isqrt32().

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