Share via


BitOperations.LeadingZeroCount 메서드

정의

오버로드

LeadingZeroCount(UInt32)

부호 없는 32비트 정수 마스크에서 선행 0비트의 수를 계산합니다.

LeadingZeroCount(UInt64)

부호 없는 64비트 정수 마스크에서 선행 0비트의 수를 계산합니다.

LeadingZeroCount(UIntPtr)

마스크의 선행 0비트 수를 계산합니다. x86 명령 LZCNT와 동작이 비슷합니다.

LeadingZeroCount(UInt32)

Source:
BitOperations.cs
Source:
BitOperations.cs
Source:
BitOperations.cs

중요

이 API는 CLS 규격이 아닙니다.

부호 없는 32비트 정수 마스크에서 선행 0비트의 수를 계산합니다.

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

마스크입니다.

반환

마스크의 앞에 오는 0비트의 수입니다.

특성

설명

이 메서드는 x86 명령 LZCNT와 동작에서 비슷합니다.

적용 대상

LeadingZeroCount(UInt64)

Source:
BitOperations.cs
Source:
BitOperations.cs
Source:
BitOperations.cs

중요

이 API는 CLS 규격이 아닙니다.

부호 없는 64비트 정수 마스크에서 선행 0비트의 수를 계산합니다.

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

마스크입니다.

반환

마스크의 앞에 오는 0비트의 수입니다.

특성

설명

이 메서드는 x86 명령 LZCNT와 동작에서 비슷합니다.

적용 대상

LeadingZeroCount(UIntPtr)

Source:
BitOperations.cs
Source:
BitOperations.cs
Source:
BitOperations.cs

중요

이 API는 CLS 규격이 아닙니다.

마스크의 선행 0비트 수를 계산합니다. 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

값입니다.

반환

마스크의 선행 0비트 수입니다.

특성

적용 대상