Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 12/16/2022
Public

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

Document Table of Contents

<span class='option'>_mm256_permute2x128_si256 </span>

Permutes 128-bit integer data from the first source vector and the second source vector in the destination vector. The corresponding Intel® AVX2 instruction is VPERM2I128.

Syntax

extern __m256i _mm256_permute2x128_si256(__m256i a, __m256i b, int control);

Arguments

a

integer source vector

b

integer source vector

control

8-bit immediate used for the operation

Description

Permutes 128-bit integer data from source vector a and source vector b using bits in the 8-bit immediate and stores results in the destination vector.



Returns

Result of the permute operation.