## _mm_mask_getexp_ph

# Function _mm_mask_getexp_ph

1.94.0 · Source

    pub fn _mm_mask_getexp_ph(src: __m128h, k: __mmask8, a: __m128h) -> __m128h

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

Convert the exponent of each packed half-precision (16-bit) floating-point element in a to a half-precision (16-bit) floating-point number representing the integer exponent, and store the results in dst using writemask k (elements are copied from src when the corresponding mask bit is not set). This intrinsic essentially calculates `floor(log2(x))` for each element.

Intel’s documentation