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

_mm512_sqrt_ps
ADD TO COMPARE ADDED TO COMPARE

 Intel 64-bit (64 bits)/ AVX512  View official documentation
Purpose:
Compute the square root of packed single-precision (32-bit) floating-point elements in "a", and store the results in "dst".
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_sqrt_ps(a);
 float* res = (float*)&result;
 for (int i = 0; i < 16; i++)
  printf("%f\n", res[i]);
 }

Prototypes

Assembly Instruction:
vsqrtps
Usage:
__m512 output = _mm512_sqrt_ps( __m512 a )
DB statistics
SIMD Engines: 5
C Intrinsics: 10702
NEON: 4232
AVX2: 462
AVX512: 4955
SSE4.2: 652
VSX: 401