Table of Contents

Method LeadingZeroCount

Namespace
Zyl.VectorTraits.Numerics
Assembly
VectorTraits.dll

LeadingZeroCount(uint)

Count the number of leading zero bits in a mask. Similar in behavior to the x86 instruction LZCNT.

[CLSCompliant(false)]
public static int LeadingZeroCount(uint value)

Parameters

value uint

The value.

Returns

int

LeadingZeroCount(ulong)

Count the number of leading zero bits in a mask. Similar in behavior to the x86 instruction LZCNT.

[CLSCompliant(false)]
public static int LeadingZeroCount(ulong value)

Parameters

value ulong

The value.

Returns

int

LeadingZeroCount(ExUInt128)

Count the number of leading zero bits in a mask. Similar in behavior to the x86 instruction LZCNT.

[CLSCompliant(false)]
public static int LeadingZeroCount(ExUInt128 value)

Parameters

value ExUInt128

The value.

Returns

int

LeadingZeroCount(UInt128)

Count the number of leading zero bits in a mask. Similar in behavior to the x86 instruction LZCNT.

[CLSCompliant(false)]
public static int LeadingZeroCount(UInt128 value)

Parameters

value UInt128

The value.

Returns

int

LeadingZeroCount(nuint)

Count the number of leading zero bits in a mask. Similar in behavior to the x86 instruction LZCNT.

[CLSCompliant(false)]
public static int LeadingZeroCount(nuint value)

Parameters

value nuint

The value.

Returns

int