Developer Guide and Reference

Contents

_mm256_abs_epi8/16/32

Computes the absolute value of the signed packed integer data elements of a given vector. The corresponding Intel® AVX2 instruction is
VPABSB
,
VPABSW
, or
VPABSD
.

Syntax

extern __m256i _mm256_abs_epi8(__m256i s1);
extern __m256i _mm256_abs_epi16(__m256i s1);
extern __m256i _mm256_abs_epi32(__m256i s1);
Arguments
s1
integer source vector used for the operation
Description
Computes the absolute value of each data element, either signed bytes, 16-bit words, or 32-bit integers, of the source vector and stores the UNSIGNED results in the destination vector.
Returns
Result of the operation.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804