Table of Contents

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 uint

The value.

Returns

int

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 ulong

The value.

Returns

int

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 ExUInt128

The value.

Returns

int

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 UInt128

The value.

Returns

int

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 nuint

The value.

Returns

int