docs.unity.cn
    Show / Hide Table of Contents

    Class X86.Popcnt

    popcnt intrinsics

    Inheritance
    Object
    X86.Popcnt
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Burst.Intrinsics
    Syntax
    public static class Popcnt

    Properties

    Name Description
    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.

    Methods

    Name Description
    popcnt_u32(UInt32)

    Count the number of bits set to 1 in unsigned 32-bit integer a, and return that count in dst.

    popcnt_u64(UInt64)

    Count the number of bits set to 1 in unsigned 64-bit integer a, and return that count in dst.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Thursday, June 9, 2022
    Terms of use