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

_mm_sqrt_pd
ADD TO COMPARE ADDED TO COMPARE

 Location: Math Functions  >  Vector Square Root
 CPU Extensions: SSE2
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 result = _mm_sqrt_pd( __m128d 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