Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 7/13/2023
Public
Document Table of Contents

_mm256_insertf128_ps

Inserts 128 bits of packed float32 values. The corresponding Intel® AVX instruction is VINSERTF128.

Syntax

extern __m256 _mm256_insertf128_ps(__m256 a, __m128 b, int offset);

Arguments

a

256-bit float32 source vector

b

128-bit float32 source vector

offset

an integer value that represents the 128-bit offset where the insertion must start

Description

Performs an insertion of 128 bits of packed single-precision floating-point values (float32 values) from the second source vector b, into a destination at a 128-bit offset specified by the offset parameter. The remaining portions of the destination are written by the corresponding elements of the first source vector a.

Returns

Result of the insertion operation.