_mm256_avg_epu16
Classification
AVX_ALL, Probability/Statistics, CPUID Test: AVX2
Header File
immintrin.h
Instruction
VPAVGW ymm, ymm, ymm
Synopsis
 _mm256_avg_epu16(__m256i a, __m256i b);
Description
Average packed unsigned 16-bit integers in "a" and "b", and store the results in "dst".
Operation
FOR j := 0 to 15
	i := j*16
	dst[i+15:i] := (a[i+15:i] + b[i+15:i] + 1) >> 1
ENDFOR
dst[MAX:256] := 0