Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


X86.Bmi1

bmi1 intrinsics
Read time 2 minutesLast updated 5 days ago

Definition

public static class X86.Bmi1

Static Properties

Property

Description

IsBmi1SupportedEvaluates to true at compile time if bmi1 intrinsics are supported.

Static Methods

Method

Description

andn_u32Compute the bitwise NOT of 32-bit integer a and then AND with b, and store the results in dst.
andn_u64Compute the bitwise NOT of 64-bit integer a and then AND with b, and store the results in dst.
bextr2_u32Extract contiguous bits from unsigned 32-bit integer a, and store the result in dst. Extract the number of bits specified by bits 15:8 of control, starting at the bit specified by bits 0:7 of control..
bextr2_u64Extract contiguous bits from unsigned 64-bit integer a, and store the result in dst. Extract the number of bits specified by bits 15:8 of control, starting at the bit specified by bits 0:7 of control..
bextr_u32Extract contiguous bits from unsigned 32-bit integer a, and store the result in dst. Extract the number of bits specified by len, starting at the bit specified by start.
bextr_u64Extract contiguous bits from unsigned 64-bit integer a, and store the result in dst. Extract the number of bits specified by len, starting at the bit specified by start.
blsi_u32Extract the lowest set bit from unsigned 32-bit integer a and set the corresponding bit in dst. All other bits in dst are zeroed, and all bits are zeroed if no bits are set in a.
blsi_u64Extract the lowest set bit from unsigned 64-bit integer a and set the corresponding bit in dst. All other bits in dst are zeroed, and all bits are zeroed if no bits are set in a.
blsmsk_u32Set all the lower bits of dst up to and including the lowest set bit in unsigned 32-bit integer a.
blsmsk_u64Set all the lower bits of dst up to and including the lowest set bit in unsigned 64-bit integer a.
blsr_u32Copy all bits from unsigned 32-bit integer a to dst, and reset (set to 0) the bit in dst that corresponds to the lowest set bit in a.
blsr_u64Copy all bits from unsigned 64-bit integer a to dst, and reset (set to 0) the bit in dst that corresponds to the lowest set bit in a.
tzcnt_u32Count the number of trailing zero bits in unsigned 32-bit integer a, and return that count in dst.
tzcnt_u64Count the number of trailing zero bits in unsigned 64-bit integer a, and return that count in dst.