bcm-v4

[Specification

u8 PHY Nbits (s32 input)

Find the position of the most significant bit in abs(input)

  1. Set tmp1 to the absolute value of input
  2. Set nbits to 0
  3. While (tmp1 >> nbits) is > 0

    1. Increment nbits
  4. Return nbits

Exported/Archived from the wiki to HTML on 2016-10-27