BitOperations.LeadingZeroCount 方法

定義

多載

名稱 Description
LeadingZeroCount(UInt32)

計算無符號32位元整數遮罩中前導零位元的數量。

LeadingZeroCount(UInt64)

計算無符號 64 位元整數遮罩中前導零位元的數量。

LeadingZeroCount(UIntPtr)

計算遮罩中前導零位元的數量。 其行為類似於 x86 指令 LZCNT。

LeadingZeroCount(UInt32)

來源:
BitOperations.cs
來源:
BitOperations.cs
來源:
BitOperations.cs
來源:
BitOperations.cs
來源:
BitOperations.cs

重要

此 API 不符合 CLS 規範。

計算無符號32位元整數遮罩中前導零位元的數量。

public:
 static int LeadingZeroCount(System::UInt32 value);
[System.CLSCompliant(false)]
public static int LeadingZeroCount(uint value);
[<System.CLSCompliant(false)>]
static member LeadingZeroCount : uint32 -> int
Public Shared Function LeadingZeroCount (value As UInteger) As Integer

參數

value
UInt32

面具。

傳回

遮罩中前導零位元的數量。

屬性

備註

此方法在行為上類似於 x86 指令 LZCNT

適用於

LeadingZeroCount(UInt64)

來源:
BitOperations.cs
來源:
BitOperations.cs
來源:
BitOperations.cs
來源:
BitOperations.cs
來源:
BitOperations.cs

重要

此 API 不符合 CLS 規範。

計算無符號 64 位元整數遮罩中前導零位元的數量。

public:
 static int LeadingZeroCount(System::UInt64 value);
[System.CLSCompliant(false)]
public static int LeadingZeroCount(ulong value);
[<System.CLSCompliant(false)>]
static member LeadingZeroCount : uint64 -> int
Public Shared Function LeadingZeroCount (value As ULong) As Integer

參數

value
UInt64

面具。

傳回

遮罩中前導零位元的數量。

屬性

備註

此方法在行為上類似於 x86 指令 LZCNT

適用於

LeadingZeroCount(UIntPtr)

來源:
BitOperations.cs
來源:
BitOperations.cs
來源:
BitOperations.cs
來源:
BitOperations.cs
來源:
BitOperations.cs

重要

此 API 不符合 CLS 規範。

計算遮罩中前導零位元的數量。 其行為類似於 x86 指令 LZCNT。

public:
 static int LeadingZeroCount(UIntPtr value);
[System.CLSCompliant(false)]
public static int LeadingZeroCount(UIntPtr value);
[<System.CLSCompliant(false)>]
static member LeadingZeroCount : unativeint -> int
Public Shared Function LeadingZeroCount (value As UIntPtr) As Integer

參數

value
UIntPtr

unativeint

值。

傳回

遮罩中前導零位元數。

屬性

適用於