Available on x86 or x86-64 only.
Expand description
Bit-oriented Algorithms (BITALG)
The intrinsics here correspond to those in the immintrin.h C header.
The reference is Intel 64 and IA-32 Architectures Software Developerβs Manual Volume 2: Instruction Set Reference, A-Z.
Re-exportsΒ§
use crate::core_arch::simd::i8x16;πuse crate::core_arch::simd::i8x32;πuse crate::core_arch::simd::i8x64;πuse crate::core_arch::simd::i16x8;πuse crate::core_arch::simd::i16x16;πuse crate::core_arch::simd::i16x32;πuse crate::core_arch::x86::__m128i;πuse crate::core_arch::x86::__m256i;πuse crate::core_arch::x86::__m512i;πuse crate::core_arch::x86::__mmask8;πuse crate::core_arch::x86::__mmask16;πuse crate::core_arch::x86::__mmask32;πuse crate::core_arch::x86::__mmask64;πuse crate::intrinsics::simd::simd_ctpop;πExperimental use crate::intrinsics::simd::simd_select_bitmask;πExperimental use crate::mem::transmute;π
FunctionsΒ§
- _mm256_
bitshuffle_ epi64_ mask avx512bitalgandavx512vl - Considers the input
bas packed 64-bit integers andcas packed 8-bit integers. Then groups 8 8-bit values fromcas indices into the bits of the corresponding 64-bit integer. It then selects these bits and packs them into the output. - _mm256_
mask_ bitshuffle_ epi64_ mask avx512bitalgandavx512vl - Considers the input
bas packed 64-bit integers andcas packed 8-bit integers. Then groups 8 8-bit values fromcas indices into the bits of the corresponding 64-bit integer. It then selects these bits and packs them into the output. - _mm256_
mask_ popcnt_ epi8 avx512bitalgandavx512vl - For each packed 8-bit integer maps the value to the number of logical 1 bits.
- _mm256_
mask_ popcnt_ epi16 avx512bitalgandavx512vl - For each packed 16-bit integer maps the value to the number of logical 1 bits.
- _mm256_
maskz_ popcnt_ epi8 avx512bitalgandavx512vl - For each packed 8-bit integer maps the value to the number of logical 1 bits.
- _mm256_
maskz_ popcnt_ epi16 avx512bitalgandavx512vl - For each packed 16-bit integer maps the value to the number of logical 1 bits.
- _mm256_
popcnt_ epi8 avx512bitalgandavx512vl - For each packed 8-bit integer maps the value to the number of logical 1 bits.
- _mm256_
popcnt_ epi16 avx512bitalgandavx512vl - For each packed 16-bit integer maps the value to the number of logical 1 bits.
- _mm512_
bitshuffle_ epi64_ mask avx512bitalg - Considers the input
bas packed 64-bit integers andcas packed 8-bit integers. Then groups 8 8-bit values fromcas indices into the bits of the corresponding 64-bit integer. It then selects these bits and packs them into the output. - _mm512_
mask_ bitshuffle_ epi64_ mask avx512bitalg - Considers the input
bas packed 64-bit integers andcas packed 8-bit integers. Then groups 8 8-bit values fromcas indices into the bits of the corresponding 64-bit integer. It then selects these bits and packs them into the output. - _mm512_
mask_ popcnt_ epi8 avx512bitalg - For each packed 8-bit integer maps the value to the number of logical 1 bits.
- _mm512_
mask_ popcnt_ epi16 avx512bitalg - For each packed 16-bit integer maps the value to the number of logical 1 bits.
- _mm512_
maskz_ popcnt_ epi8 avx512bitalg - For each packed 8-bit integer maps the value to the number of logical 1 bits.
- _mm512_
maskz_ popcnt_ epi16 avx512bitalg - For each packed 16-bit integer maps the value to the number of logical 1 bits.
- _mm512_
popcnt_ epi8 avx512bitalg - For each packed 8-bit integer maps the value to the number of logical 1 bits.
- _mm512_
popcnt_ epi16 avx512bitalg - For each packed 16-bit integer maps the value to the number of logical 1 bits.
- _mm_
bitshuffle_ epi64_ mask avx512bitalgandavx512vl - Considers the input
bas packed 64-bit integers andcas packed 8-bit integers. Then groups 8 8-bit values fromcas indices into the bits of the corresponding 64-bit integer. It then selects these bits and packs them into the output. - _mm_
mask_ bitshuffle_ epi64_ mask avx512bitalgandavx512vl - Considers the input
bas packed 64-bit integers andcas packed 8-bit integers. Then groups 8 8-bit values fromcas indices into the bits of the corresponding 64-bit integer. It then selects these bits and packs them into the output. - _mm_
mask_ popcnt_ epi8 avx512bitalgandavx512vl - For each packed 8-bit integer maps the value to the number of logical 1 bits.
- _mm_
mask_ popcnt_ epi16 avx512bitalgandavx512vl - For each packed 16-bit integer maps the value to the number of logical 1 bits.
- _mm_
maskz_ popcnt_ epi8 avx512bitalgandavx512vl - For each packed 8-bit integer maps the value to the number of logical 1 bits.
- _mm_
maskz_ popcnt_ epi16 avx512bitalgandavx512vl - For each packed 16-bit integer maps the value to the number of logical 1 bits.
- _mm_
popcnt_ epi8 avx512bitalgandavx512vl - For each packed 8-bit integer maps the value to the number of logical 1 bits.
- _mm_
popcnt_ epi16 avx512bitalgandavx512vl - For each packed 16-bit integer maps the value to the number of logical 1 bits.
- bitshuffle_
128 π β - bitshuffle_
256 π β - bitshuffle_
512 π β