_mm512_add_pdADD TO COMPARE ADDED TO COMPARE
Intel 64-bit (64 bits)/ AVX512
View official documentation
View Félix Cloutier's documentation
Purpose:
Add packed double-precision (64-bit) floating-point elements in "a" and "b", and store the results in "dst".
Result:
__m512d
Example:
#include <immintrin.h>
#include <stdio.h>
int main() {
__m512d a = _mm512_set_pd(1, 2, 3, 4, 5, 6, 7, 8);
__m512d b = _mm512_set1_pd(0.5);
__m512d r = _mm512_add_pd(a, b);
double* p = (double*)&r;
for (int i = 0; i < 8; i++)
printf("%.1f ", p[i]);
printf("\n");
return 0;
}
Prototypes
Assembly Instruction:
vaddpd
Usage:
__m512d result =
_mm512_add_pd(
__m512d a, __m512d 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 |