Intel® Streaming SIMD Extensions 2 (Intel® SSE2) intrinsics for floating-point comparision operations are listed in the following table. The prototypes for Intel® SSE2 intrinsics 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 two double-precision FP values of
bare compared, and a 128-bit mask is returned. For the scalar form, the lower double-precision FP values of
bare compared, and a 64-bit mask is returned; the upper double-precision FP value is passed through from
The mask is set to
0xfffffffffffffffffor each element where the comparison is true, and set to
0x0where the comparison is false. The
rfollowing the instruction name indicates that the operands to the instruction are reversed in the actual implementation.
The results of each intrinsic operation are placed in a register. The information about what is placed in each register appears in the tables below, in the detailed explanation for each intrinsic. For each intrinsic, the resulting register is represented by
R1each represent one piece of the result register.
CorrespondingIntel® SSE2 Instruction