Method Log2
- Namespace
- Zyl.VectorTraits.Numerics
- Assembly
- VectorTraits.dll
Log2(uint)
Returns the integer (floor) log of the specified value, base 2. Note that by convention, input value 0 returns 0 since log(0) is undefined.
[CLSCompliant(false)]
public static int Log2(uint value)
Parameters
value
uintThe value.
Returns
Log2(ulong)
Returns the integer (floor) log of the specified value, base 2. Note that by convention, input value 0 returns 0 since log(0) is undefined.
[CLSCompliant(false)]
public static int Log2(ulong value)
Parameters
value
ulongThe value.
Returns
Log2(ExUInt128)
Returns the integer (floor) log of the specified value, base 2. Note that by convention, input value 0 returns 0 since log(0) is undefined.
[CLSCompliant(false)]
public static int Log2(ExUInt128 value)
Parameters
value
ExUInt128The value.
Returns
Log2(UInt128)
Returns the integer (floor) log of the specified value, base 2. Note that by convention, input value 0 returns 0 since log(0) is undefined.
[CLSCompliant(false)]
public static int Log2(UInt128 value)
Parameters
value
UInt128The value.
Returns
Log2(nuint)
Returns the integer (floor) log of the specified value, base 2. Note that by convention, input value 0 returns 0 since log(0) is undefined.
[CLSCompliant(false)]
public static int Log2(nuint value)
Parameters
value
nuintThe value.