_mm_add_si64ADD TO COMPARE ADDED TO COMPARE
Intel 64-bit (64 bits)/ SSE4.2
View official documentation
Location:
Arithmetic
>
Vector Add
Purpose:
Add 64-bit integers a and b, and store the result in output.
Result:
A 64-bit SSE2 vector containing the resuld of the addition.
Example:
#include <emmintrin.h>
#include <stdio.h>
int main() {
__m64 a = _mm_set_pi64x(1);
__m64 b = _mm_set_pi64x(5);
__m64 result = _mm_add_si64(a, b);
long long res = _mm_cvtsi64_si64(result);
printf("%lld\n", res);
return 0;
}
Prototypes
Assembly Instruction:
paddq
Usage:
__m64 output =
_mm_add_si64(
__m64 a, __m64 b
)
Did you find this useful? Let's discuss.
DB statistics
SIMD Engines: | 5 |
C Intrinsics: | 10702 |
NEON: | 4232 |
AVX2: | 462 |
AVX512: | 4955 |
SSE4.2: | 652 |
VSX: | 401 |