docs.unity3d.com
Search Results for

    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
    Assembly: Unity.Burst.dll
    Syntax
    public static class X86.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(uint)

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

    popcnt_u64(ulong)

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

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)