u8 PHY Nbits (s32 input)
Find the position of the most significant bit in abs(input)
- Set tmp1 to the absolute value of input
- Set nbits to 0
While (tmp1 >> nbits) is > 0
- Increment nbits
- Return nbits
|
[Specification] |
While (tmp1 >> nbits) is > 0