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

_mm_sqrt_pd
ADD TO COMPARE ADDED TO COMPARE

 Intel 64-bit (64 bits)/ SSE4.2  View official documentation
Purpose:
Compute the square root of packed double-precision (64-bit) floating-point elements in a, and store the results in output.
Result:

__m128d

Example:
#include <emmintrin.h>
#include <stdio.h>
int main() {
 __m128d a = _mm_set_pd(16.0, 9.0);
 __m128d result = _mm_sqrt_pd(a);
 double res[2];
 _mm_storeu_pd(res, result);
 printf("%lf %lf\n", res[0], res[1]);

 return 0;
}

Prototypes

Assembly Instruction:
sqrtpd
Usage:
__m128d output = _mm_sqrt_pd( __m128d a )
DB statistics
SIMD Engines: 5
C Intrinsics: 10702
NEON: 4232
AVX2: 462
AVX512: 4955
SSE4.2: 652
VSX: 401