_mm256_sqrt_pdADD TO COMPARE ADDED TO COMPARE
Intel 64-bit (64 bits)/ AVX2
View official documentation
View Félix Cloutier's documentation
Purpose:
Compute the square root of packed double-precision (64-bit) floating-point elements in a, and store the results in output.
Result:
__m256d
Example:
#include <immintrin.h>
#include <stdio.h>
int main() {
__m256d a = _mm256_set_pd(64.0, 49.0, 36.0, 25.0);
__m256d result = _mm256_sqrt_pd(a);
double res[4];
_mm256_storeu_pd(res, result);
printf("%lf %lf %lf %lf\n", res[0], res[1], res[2], res[3]);
return 0;
}
Prototypes
Assembly Instruction:
vsqrtpd
Usage:
__m256d result =
_mm256_sqrt_pd(
__m256d a
)
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 |