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

_mm_abs_ph
ADD TO COMPARE ADDED TO COMPARE

 Intel 64-bit (64 bits)/ AVX512  View official documentation
 Location: Arithmetic  >  Vector Absolute Value
 CPU Extensions: AVX512_FP16, AVX512VL
Purpose:
Finds the absolute value of each packed half-precision (16-bit) floating-point element in a, storing the results in output.
Result:

A 128-bit vector of 8 x 16-bit half-precision floating-point numbers that hold the absolute values of the input elements.

Example:
#include <immintrin.h>
int main() {
 __m128h v2 = _mm_set_ph(        1.0f, -2.0f, 3.0f, -4.0f,        5.0f, -6.0f, 7.0f, -8.0f    );
 __m128h result = _mm_abs_ph(v2);

 return 0;
}

Prototypes

Assembly Instruction:
SEQUENCE
Usage:
__m128h result = _mm_abs_ph( __m128h a )
SIMD Intrinsics Summary
SIMD Engines: 6
C Intrinsics: 10444
NEON: 4353
AVX2: 405
AVX512: 4717
SSE4.2: 598
VSX: 192
IBM-Z: 179