pub unsafe fn _mm256_mask_ternarylogic_epi64(
    src: __m256i,
    k: __mmask8,
    a: __m256i,
    b: __m256i,
    const IMM8: i32
) -> __m256i
🔬This is a nightly-only experimental API. (stdsimd #48556)
Available on (x86 or x86-64) and target feature avx512f,avx512vl and x86-64 only.
Expand description

提供执行任何三操作数二进制函数的功能的按位三元逻辑; 特定的二进制函数由 imm8 中的值指定。对于每个包装的 64 位整数中的每一位,使用 src、a、b 中对应的位构成 imm8 的 3 位索引,并将 imm8 中该位的值写入 dst 中的相应位,使用 writemask k 在 64 位粒度 (当相应的掩码位未设置时,从 src 复制 64 位元素)。

Intel’s documentation