BooRunner.Tools.Bits.CeilLog2 C# (CSharp) Method

CeilLog2() public static method

Ceil(Log2(x)).
public static CeilLog2 ( uint x ) : int
x uint Int value.
return int
        public static int CeilLog2(uint x)
        {
            int msb = Msb(x);
            if (x != 1U << msb)
            {
                ++msb;
            }
            return msb;
        }