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

◆ _highest_bit_step()

template<typename Derived, int IntBits, int FracBits>
static constexpr int fl::fixed_point_base< Derived, IntBits, FracBits >::_highest_bit_step ( u32 v,
int r )
inlinestaticconstexprprivate

Definition at line 331 of file base.h.

331 {
332 return (v & 0xFFFF0000u) ? _highest_bit_step(v >> 16, r + 16)
333 : (v & 0x0000FF00u) ? _highest_bit_step(v >> 8, r + 8)
334 : (v & 0x000000F0u) ? _highest_bit_step(v >> 4, r + 4)
335 : (v & 0x0000000Cu) ? _highest_bit_step(v >> 2, r + 2)
336 : (v & 0x00000002u) ? r + 1
337 : r;
338 }
static constexpr int _highest_bit_step(u32 v, int r)
Definition base.h:331

References _highest_bit_step().

Referenced by _highest_bit_step(), and highest_bit().

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