Function no_std_compat::arch::x86_64::_mm256_mask_ternarylogic_epi64
source · pub unsafe fn _mm256_mask_ternarylogic_epi64<const IMM8: i32>(
src: __m256i,
k: u8,
a: __m256i,
b: __m256i,
) -> __m256i
🔬This is a nightly-only experimental API. (
stdarch_x86_avx512
)Available on x86-64 only.
Expand description
Bitwise ternary logic that provides the capability to implement any three-operand binary function; the specific binary function is specified by value in imm8. For each bit in each packed 64-bit integer, the corresponding bit from src, a, and b are used to form a 3 bit index into imm8, and the value at that bit in imm8 is written to the corresponding bit in dst using writemask k at 64-bit granularity (64-bit elements are copied from src when the corresponding mask bit is not set).