Class X86.Popcnt | Burst | 1.3.9
docs.unity3d.com
    Show / Hide Table of Contents

    Class X86.Popcnt

    popcnt intrinsics

    Inheritance
    Object
    X86.Popcnt
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    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

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023