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

_mm512_rsqrt14_ps
ADD TO COMPARE ADDED TO COMPARE

 Location: Math Functions  >  Vector Approximate Reciprocal Square Root
 CPU Extensions: AVX512F
Purpose:
Compute the approximate reciprocal square root of packed single-precision (32-bit) floating-point elements in "a", and store the results in "dst". The maximum relative error for this approximation is less than 2^-14.
Result:

__m512

Example:
#include <immintrin.h>
#include <stdio.h>
int main() {
 __m512 a = _mm512_setr_ps(1.0, 4.0, 9.0, 16.0, 25.0, 36.0, 49.0, 64.0,                               81.0, 100.0, 121.0, 144.0, 169.0, 196.0, 225.0, 256.0);
 __m512 result = _mm512_rsqrt14_ps(a);
 float* res = (float*)&result;
 for (int i = 0; i < 16; i++)
  printf("%f\n", res[i]);
 }

Prototypes

Assembly Instruction:
VRSQRT14PS
Usage:
__m512 result = _mm512_rsqrt14_ps( __m512 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