Class X86.Popcnt
popcnt intrinsics
Inherited Members
Namespace: Unity.Burst.Intrinsics
Syntax
public static class Popcnt
Properties
IsPopcntSupported
Evaluates to true at compile time if popcnt intrinsics are supported.
Burst ties popcnt support to SSE4.2 support to simplify feature sets to support.
Declaration
public static bool IsPopcntSupported { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
popcnt_u32(UInt32)
Count the number of bits set to 1 in unsigned 32-bit integer a, and return that count in dst.
Declaration
public static int popcnt_u32(uint v)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | v |
Returns
Type | Description |
---|---|
Int32 |
Remarks
**** popcnt r32, r32
popcnt_u64(UInt64)
Count the number of bits set to 1 in unsigned 64-bit integer a, and return that count in dst.
Declaration
public static int popcnt_u64(ulong v)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | v |
Returns
Type | Description |
---|---|
Int32 |
Remarks
**** popcnt r64, r64