The prototypes for Intel® Streaming SIMD Extensions (Intel® SSE) intrinsics for arithmetic operations are in the xmmintrin.h header file.
The results of each intrinsic operation are placed in a register. This register is illustrated for each intrinsic with R0-R3. R0, R1, R2 and R3 each represent one of the four 32-bit pieces of the result register.
Intrinsic Name |
Operation |
Corresponding |
---|---|---|
_mm_add_ss |
Addition |
ADDSS |
_mm_add_ps |
Addition |
ADDPS |
_mm_sub_ss |
Subtraction |
SUBSS |
_mm_sub_ps |
Subtraction |
SUBPS |
_mm_mul_ss |
Multiplication |
MULSS |
_mm_mul_ps |
Multiplication |
MULPS |
_mm_div_ss |
Division |
DIVSS |
_mm_div_ps |
Division |
DIVPS |
_mm_sqrt_ss |
Squared Root |
SQRTSS |
_mm_sqrt_ps |
Squared Root |
SQRTPS |
_mm_rcp_ss |
Reciprocal |
RCPSS |
_mm_rcp_ps |
Reciprocal |
RCPPS |
_mm_rsqrt_ss |
Reciprocal Squared Root |
RSQRTSS |
_mm_rsqrt_ps |
Reciprocal Squared Root |
RSQRTPS |
_mm_min_ss |
Computes Minimum |
MINSS |
_mm_min_ps |
Computes Minimum |
MINPS |
_mm_max_ss |
Computes Maximum |
MAXSS |
_mm_max_ps |
Computes Maximum |
MAXPS |
__m128 _mm_add_ss(__m128 a, __m128 b)
Adds the lower single-precision, floating-point (SP FP) values of a and b; the upper 3 SP FP values are passed through from a.
__m128 _mm_sub_ss(__m128 a, __m128 b)
Subtracts the lower SP FP values of a and b. The upper 3 SP FP values are passed through from a.
__m128 _mm_mul_ss(__m128 a, __m128 b)
Multiplies the lower SP FP values of a and b; the upper 3 SP FP values are passed through from a.
__m128 _mm_div_ss(__m128 a, __m128 b )
Divides the lower SP FP values of a and b; the upper 3 SP FP values are passed through from a.
__m128 _mm_sqrt_ss(__m128 a)
Computes the square root of the lower SP FP value of a ; the upper 3 SP FP values are passed through.
__m128 _mm_rcp_ss(__m128 a)
Computes the approximation of the reciprocal of the lower SP FP value of a; the upper 3 SP FP values are passed through.
__m128 _mm_rcp_ps(__m128 a)
Computes the approximations of reciprocals of the four SP FP values of a.
__m128 _mm_rsqrt_ss(__m128 a)
Computes the approximation of the reciprocal of the square root of the lower SP FP value of a; the upper 3 SP FP values are passed through.
__m128 _mm_rsqrt_ps(__m128 a)
Computes the approximations of the reciprocals of the square roots of the four SP FP values of a.
__m128 _mm_min_ss(__m128 a, __m128 b)
Computes the minimum of the lower SP FP values of a and b; the upper 3 SP FP values are passed through from a.
__m128 _mm_max_ss(__m128 a, __m128 b)
Computes the maximum of the lower SP FP values of a and b; the upper 3 SP FP values are passed through from a.
Copyright © 1996-2010, Intel Corporation. All rights reserved.