Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
C#
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
BooRunner
Tools
Bits
Msb
BooRunner.Tools.Bits.Msb C# (CSharp) Method
Bits Class Documentation
Show file
Open project: juanplopes/euler
Msb()
public
static
method
Counts position of the most significant bit in int. Can also be used as Floor(Log2(
x
)).
public
static
Msb
(
uint
x
) :
int
x
uint
Int value.
return
int
public static int Msb(uint x) { return 31 - Nlz(x); }
Bits
CeilLog2
Msb
Nlz