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
CeilLog2
BooRunner.Tools.Bits.CeilLog2 C# (CSharp) Method
Bits Class Documentation
Show file
Open project: juanplopes/euler
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; }
Bits
CeilLog2
Msb
Nlz