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

_mm256_rsqrt_ps
ADD TO COMPARE ADDED TO COMPARE

Purpose:
Compute the approximate reciprocal square root of packed single-precision (32-bit) floating-point elements in a, and store the results in output. The maximum relative error for this approximation is less than 1.5*2^-12.
Result:

__m256

Example:
#include <immintrin.h>
#include <stdio.h>
int main() {
 float values[8] = {
  4.0f, 9.0f, 16.0f, 25.0f, 36.0f, 49.0f, 64.0f, 81.0f
 };
 __m256 a = _mm256_loadu_ps(values);
 __m256 result = _mm256_rsqrt_ps(a);
 float out[8];
 _mm256_storeu_ps(out, result);
 for (int i = 0; i < 8; i++) {
   printf("%f ", out[i]);
  }
  printf("\n");

  return 0;
 }

Prototypes

Assembly Instruction:
vrsqrtps
Usage:
__m256 result = _mm256_rsqrt_ps( __m256 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