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

Popcnt

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

popcnt intrinsics

Static Properties

Property 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.

Static Methods

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