docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class X86.Bmi2

    bmi2 intrinsics

    Inheritance
    object
    X86.Bmi2
    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.Bmi2

    Properties

    Name Description
    IsBmi2Supported

    Evaluates to true at compile time if bmi2 intrinsics are supported.

    Burst ties bmi2 support to AVX2 support to simplify feature sets to support.

    Methods

    Name Description
    bzhi_u32(uint, uint)

    Copy all bits from unsigned 32-bit integer a to dst, and reset (set to 0) the high bits in dst starting at index.

    bzhi_u64(ulong, ulong)

    Copy all bits from unsigned 64-bit integer a to dst, and reset (set to 0) the high bits in dst starting at index.

    mulx_u32(uint, uint, out uint)

    Multiply unsigned 32-bit integers a and b, store the low 32-bits of the result in dst, and store the high 32-bits in hi. This does not read or write arithmetic flags.

    mulx_u64(ulong, ulong, out ulong)

    Multiply unsigned 64-bit integers a and b, store the low 64-bits of the result in dst, and store the high 64-bits in hi. This does not read or write arithmetic flags.

    pdep_u32(uint, uint)

    Deposit contiguous low bits from unsigned 32-bit integer a to dst at the corresponding bit locations specified by mask; all other bits in dst are set to zero.

    pdep_u64(ulong, ulong)

    Deposit contiguous low bits from unsigned 64-bit integer a to dst at the corresponding bit locations specified by mask; all other bits in dst are set to zero.

    pext_u32(uint, uint)

    Extract bits from unsigned 32-bit integer a at the corresponding bit locations specified by mask to contiguous low bits in dst; the remaining upper bits in dst are set to zero.

    pext_u64(ulong, ulong)

    Extract bits from unsigned 64-bit integer a at the corresponding bit locations specified by mask to contiguous low bits in dst; the remaining upper bits in dst are set to zero.

    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)