C# Class IntXLib.Bits

Afficher le fichier Open project: devoyster/IntXLib

Méthodes publiques

Méthode Description
CeilLog2 ( uint x ) : int

Ceil(Log2(x)).

Msb ( uint x ) : int

Counts position of the most significant bit in int. Can also be used as Floor(Log2(x)).

Nlz ( uint x ) : int

Returns number of leading zero bits in int.

Method Details

CeilLog2() public static méthode

Ceil(Log2(x)).
public static CeilLog2 ( uint x ) : int
x uint Int value.
Résultat int

Msb() public static méthode

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.
Résultat int

Nlz() public static méthode

Returns number of leading zero bits in int.
public static Nlz ( uint x ) : int
x uint Int value.
Résultat int