Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 3/31/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of 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.