_mm512_mask_rint_ph
Classification
SVML, Special Math Functions, CPUID Test: AVX512_FP16
Header File
immintrin.h
Synopsis
 _mm512_mask_rint_ph(__m512h src, __mmask32 k, __m512h a);
Description
Rounds the packed half-precision (16-bit) floating-point elements in "a" to the nearest even integer value and stores the results in "dst" using writemask "k" (elements are copied from "src" when the corresponding mask bit is not set).
Operation
FOR j := 0 to 31
	i := j*16
	IF k[j]
		dst[i+15:i] := RoundToNearestEven(a[i+15:i])
	ELSE
		dst[i+15:i] := src[i+15:i]
	FI
ENDFOR
dst[MAX:512] := 0