BitOperations.LeadingZeroCount Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Överlagringar
| Name | Description |
|---|---|
| LeadingZeroCount(UInt32) |
Räknar antalet inledande nollbitar i en osignerad 32-bitars heltalsmask. |
| LeadingZeroCount(UInt64) |
Räknar antalet inledande nollbitar i en osignerad 64-bitars heltalsmask. |
| LeadingZeroCount(UIntPtr) |
Räknar antalet inledande noll bitar i en mask. Liknar i beteendet för x86-instruktionen LZCNT. |
LeadingZeroCount(UInt32)
- Källa:
- BitOperations.cs
- Källa:
- BitOperations.cs
- Källa:
- BitOperations.cs
- Källa:
- BitOperations.cs
- Källa:
- BitOperations.cs
Viktigt!
Detta API uppfyller inte CLS.
Räknar antalet inledande nollbitar i en osignerad 32-bitars heltalsmask.
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
Parametrar
- value
- UInt32
Masken.
Returer
Antalet inledande noll bitar i en mask.
- Attribut
Kommentarer
Den här metoden liknar x86-instruktionens LZCNT.
Gäller för
LeadingZeroCount(UInt64)
- Källa:
- BitOperations.cs
- Källa:
- BitOperations.cs
- Källa:
- BitOperations.cs
- Källa:
- BitOperations.cs
- Källa:
- BitOperations.cs
Viktigt!
Detta API uppfyller inte CLS.
Räknar antalet inledande nollbitar i en osignerad 64-bitars heltalsmask.
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
Parametrar
- value
- UInt64
Masken.
Returer
Antalet inledande noll bitar i en mask.
- Attribut
Kommentarer
Den här metoden liknar x86-instruktionens LZCNT.
Gäller för
LeadingZeroCount(UIntPtr)
- Källa:
- BitOperations.cs
- Källa:
- BitOperations.cs
- Källa:
- BitOperations.cs
- Källa:
- BitOperations.cs
- Källa:
- BitOperations.cs
Viktigt!
Detta API uppfyller inte CLS.
Räknar antalet inledande noll bitar i en mask. Liknar i beteendet för x86-instruktionen 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
Parametrar
- value
-
UIntPtr
unativeint
Värdet.
Returer
Antalet inledande nollor i en mask.
- Attribut