docs.unity3d.com
    Show / Hide Table of Contents

    Class Common

    Common intrinsics that are exposed across all Burst targets.

    Inheritance
    Object
    Common
    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 Common

    Methods

    Name Description
    Pause()

    Hint that the current thread should pause.

    In Burst compiled code this will map to platform specific ways to hint that the current thread should be paused as it is performing a calculation that would benefit from not contending with other threads. Atomic operations in tight loops (like spin-locks) can benefit from use of this intrinsic.

    • On x86 systems this maps to the pause instruction.
    • On ARM systems this maps to the yield instruction.

    Note that this is not an operating system level thread yield, it only provides a hint to the CPU that the current thread can afford to pause its execution temporarily.

    umul128(UInt64, UInt64, out UInt64)

    Return the low half of the multiplication of two numbers, and the high part as an out parameter.

    Back to top
    Terms of use
    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