The prototypes for Intel® Streaming SIMD Extensions (Intel® SSE) intrinsics for comparison operations are in the
To use these intrinsics, include the
immintrin.hfile as follows:
Each comparison intrinsic performs a comparison of
b. For the packed form, the four single-precision FP values of
bare compared, and a 128-bit mask is returned. For the scalar form, the lower single-precision FP values of
bare compared, and a 32-bit mask is returned; the upper three single-precision FP values are passed through from
a. The mask is set to
0xfffffffffor each element where the comparison is true and
0x0where the comparison is false.
The results of each intrinsic operation are placed in a register. This register is illustrated for each intrinsic with R or R0-R3. R0, R1, R2, and R3 each represent one of the four 32-bit pieces of the result register.
CorrespondingIntel® SSE Instruction