_mm256_sqrt_pdADD TO COMPARE ADDED TO COMPARE
Intel 64-bit (64 bits)/ AVX2
View official documentation
Location:
Math Functions
>
Vector Square Root
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 output =
_mm256_sqrt_pd(
__m256d a
)
DB statistics
SIMD Engines: | 5 |
C Intrinsics: | 10702 |
NEON: | 4232 |
AVX2: | 462 |
AVX512: | 4955 |
SSE4.2: | 652 |
VSX: | 401 |