P99

◆ P99_LOW2SHIFT

#define P99_LOW2SHIFT (   X)    (P99_LIKELY(!!(X)) ? ((X) / ((X) & -(X))) : 0u)

shift number right such that the least significant bit that is non zero ends up at bit position 0

Example: 10011100 -> 00100111

Definition at line 1363 of file p99_int.h.