Arithmetic Operations (Floating-Point SSE2 Intrinsics)
Microsoft Specific
The intrinsics listed in the following table are followed by a description of each intrinsic.
SSE intrinsics use the __m128, __m128i, and __m128d data types, which are not supported on Itanium Processor Family (IPF) processors. Any SSE intrinsics that use the __m64 data type are not supported on x64 processors.
The header file xmmintrin.h contains the declarations for the SSE intrinsics.
Packed Arithmetic Intrinsics
Intrinsic |
Instruction |
Operation |
R0 |
R1 |
R2 |
R3 |
---|---|---|---|---|---|---|
ADDSS |
Adds |
|
|
|
|
|
ADDPS |
Adds |
|
|
|
|
|
SUBSS |
Subtracts |
|
|
|
|
|
SUBPS |
Subtracts |
|
|
|
|
|
MULSS |
Multiplies |
|
|
|
|
|
MULPS |
Multiplies |
|
|
|
|
|
DIVSS |
Divides |
|
|
|
|
|
DIVPS |
Divides |
|
|
|
|
|
SQRTSS |
Computes squared root |
|
|
|
|
|
SQRTPS |
Computes squared root |
|
|
|
|
|
RCPSS |
Computes reciprocal |
|
|
|
|
|
RCPPS |
Computes reciprocal |
|
|
|
|
|
RSQRTSS |
Computes reciprocal square root |
|
|
|
|
|
RSQRTPS |
Computes reciprocal squared root |
|
|
|
|
|
MINSS |
Computes minimum |
|
|
|
|
|
MINPS |
Computes minimum |
|
|
|
|
|
MAXSS |
Computes maximum |
|
|
|
|
|
MAXPS |
Computes maximum |
|
|
|
|
For an explanation of the syntax used in code samples in this topic, see Floating-Point Intrinsics Using Streaming SIMD Extensions.