Version: Unity 6.6 Alpha (6000.6)
LanguageEnglish
  • C#

Common

class in Unity.Burst.Intrinsics

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Common intrinsics that are exposed across all Burst targets.

Static Methods

Method 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 Return the low half of the multiplication of two numbers, and the high part as an out parameter.