_mm512_reduce_and_epi32
Classification
AVX-512, Logical, CPUID Test: AVX512F
Header File
Synopsis
_mm512_reduce_and_epi32(__m512i a);
Description
Reduce the packed 32-bit integers in "a" by bitwise AND. Returns the bitwise AND of all elements in "a".
Operation
DEFINE REDUCE_AND(src, len) {
IF len == 2
RETURN src[31:0] AND src[63:32]
FI
len := len / 2
FOR j:= 0 to (len-1)
i := j*32
src[i+31:i] := src[i+31:i] AND src[i+32*len+31:i+32*len]
ENDFOR
RETURN REDUCE_AND(src[32*len-1:0], len)
}
dst[31:0] := REDUCE_AND(a, 16)