Skip to main content

## _mm256_mask_cmp_ph_mask

# Function _mm256_mask_cmp_ph_mask

1.94.0 · Source

    pub fn _mm256_mask_cmp_ph_mask(
        k1: __mmask16,
        a: __m256h,
        b: __m256h,
        const IMM5: i32,
    ) -> __mmask16

Available on x86-64 and target feature `avx512fp16` and target feature `avx512vl` only.
Expand description

Compare packed half-precision (16-bit) floating-point elements in a and b based on the comparison operand specified by imm8, and store the results in mask vector k using zeromask k (elements are zeroed out when the corresponding mask bit is not set).

Intel’s documentation