Please enter what you're looking for to continue your search
 

_mm_add_si64
ADD TO COMPARE ADDED TO COMPARE

 Location: Arithmetic  >  Vector Add
 CPU Extensions: SSE2
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 result = _mm_add_si64( __m64 a, __m64 b )
Performance Metrics:
📊 Unlock Performance Insights

Get access to detailed performance metrics including latency, throughput, and CPU-specific benchmarks for this intrinsic.

SIMD Intrinsics Summary
SIMD Engines: 6
C Intrinsics: 10444
NEON: 4353
AVX2: 405
AVX512: 4717
SSE4.2: 598
VSX: 192
IBM-Z: 179