BitOperations.TrailingZeroCount 方法
定义
重载
| TrailingZeroCount(Int32) |
计算 32 位整数值掩码中的尾随零位数。Counts the number of trailing zero bits in an 32-bit integer value mask. |
| TrailingZeroCount(Int64) |
计算 64 位整数值掩码中的尾随零位数。Counts the number of trailing zero bits in a 64-bit integer value mask. |
| TrailingZeroCount(UInt32) |
计算无符号 32 位整数值掩码中的尾随零位数。Counts the number of trailing zero bits in an unsigned 32-bit integer value mask. |
| TrailingZeroCount(UInt64) |
计算无符号 64 位整数值掩码中的尾随零位数。Count the number of trailing zero bits in an unsigned 64-bit integer value mask. |
TrailingZeroCount(Int32)
计算 32 位整数值掩码中的尾随零位数。Counts the number of trailing zero bits in an 32-bit integer value mask.
public:
static int TrailingZeroCount(int value);
public static int TrailingZeroCount (int value);
static member TrailingZeroCount : int -> int
Public Shared Function TrailingZeroCount (value As Integer) As Integer
参数
- value
- Int32
掩码。The mask.
返回
整数值中的尾随零位数。The number of trailing zero bits in the integer value.
注解
此方法与 x86 指令 TZCNT 的行为类似。This method is similar in behavior to the x86 instruction TZCNT.
适用于
TrailingZeroCount(Int64)
计算 64 位整数值掩码中的尾随零位数。Counts the number of trailing zero bits in a 64-bit integer value mask.
public:
static int TrailingZeroCount(long value);
public static int TrailingZeroCount (long value);
static member TrailingZeroCount : int64 -> int
Public Shared Function TrailingZeroCount (value As Long) As Integer
参数
- value
- Int64
掩码。The mask.
返回
掩码中的尾随零位数。The number of trailing zero bits in the mask.
注解
此方法与 x86 指令 TZCNT 的行为类似。This method is similar in behavior to the x86 instruction TZCNT.
适用于
TrailingZeroCount(UInt32)
重要
此 API 不符合 CLS。
计算无符号 32 位整数值掩码中的尾随零位数。Counts the number of trailing zero bits in an unsigned 32-bit integer value mask.
public:
static int TrailingZeroCount(System::UInt32 value);
[System.CLSCompliant(false)]
public static int TrailingZeroCount (uint value);
[<System.CLSCompliant(false)>]
static member TrailingZeroCount : uint32 -> int
Public Shared Function TrailingZeroCount (value As UInteger) As Integer
参数
- value
- UInt32
掩码。The mask.
返回
掩码中的尾随零位数。The number of trailing zero bits in the mask.
- 属性
注解
此方法与 x86 指令 TZCNT 的行为类似。This method is similar in behavior to the x86 instruction TZCNT.
适用于
TrailingZeroCount(UInt64)
重要
此 API 不符合 CLS。
计算无符号 64 位整数值掩码中的尾随零位数。Count the number of trailing zero bits in an unsigned 64-bit integer value mask.
public:
static int TrailingZeroCount(System::UInt64 value);
[System.CLSCompliant(false)]
public static int TrailingZeroCount (ulong value);
[<System.CLSCompliant(false)>]
static member TrailingZeroCount : uint64 -> int
Public Shared Function TrailingZeroCount (value As ULong) As Integer
参数
- value
- UInt64
掩码。The mask.
返回
掩码中的尾随零位数。The number of trailing zero bits in the mask.
- 属性
注解
此 meethod 与 x86 指令 TZCNT 的行为类似。This meethod is similar in behavior to the x86 instruction TZCNT.