_mm512_rsqrt28_pdADD TO COMPARE ADDED TO COMPARE
Intel 64-bit (64 bits)/ AVX512
View official documentation
View Félix Cloutier's documentation
Purpose:
Compute the approximate reciprocal square root of packed double-precision (64-bit) floating-point elements in "a", store the results in "dst". The maximum relative error for this approximation is less than 2^-28.
Result:
__m512d
Example:
#include <immintrin.h>
#include <stdio.h>
int main() {
__m512d a = _mm512_setr_pd(1.0, 4.0, 9.0, 16.0, 25.0, 36.0, 49.0, 64.0);
__m512d result = _mm512_rsqrt28_pd(a);
double* res = (double*)&result;
for (int i = 0; i < 8; i++)
printf("%f\n", res[i]);
}
Prototypes
Assembly Instruction:
VRSQRT28PD
Usage:
__m512d output =
_mm512_rsqrt28_pd(
__m512d a
)
DB statistics
SIMD Engines: | 5 |
C Intrinsics: | 10702 |
NEON: | 4232 |
AVX2: | 462 |
AVX512: | 4955 |
SSE4.2: | 652 |
VSX: | 401 |