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

_mm_sqrt_ps
ADD TO COMPARE ADDED TO COMPARE

 Location: Math Functions  >  Vector Square Root
 CPU Extensions: SSE
Purpose:

Compute the square root of packed single-precision (32-bit) floating-point elements in a, and store the results in output.

Result:

__m128

Example:
#include <xmmintrin.h>
#include <stdio.h>
int main() {
 __m128 a = _mm_set_ps(16.0f, 9.0f, 4.0f, 1.0f);
 __m128 result = _mm_sqrt_ps(a);
 float res[4];
 _mm_storeu_ps(res, result);
 printf("%f %f %f %f\n", res[0], res[1], res[2], res[3]);

 return 0;
}

Prototypes

Assembly Instruction:
rsqrtps
Usage:
__m128 result = _mm_sqrt_ps( __m128 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