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_set1_epi32

Initializes 256-bit vector with scalar integer values. No corresponding Intel® AVX instruction.

Syntax

extern __m256i _mm256_set1_epi8(char a);

extern __m256i _mm256_set1_epi16(short a);

extern __m256i _mm256_set1_epi32(int a);

extern __m256i _mm256_set1_epi64x(long long a);

Arguments

a

An 8/16/32/64-bit integer value to be initialized into the 256-bit vector. For each variant, there is one integer parameter for each 8/16/32/64-bit integer vector element.

Description

Initializes a 256-bit vector with scalar integer values (8/16/32/64-bit values) as specified by the a parameter.

Returns

An 8/16/32/64-bit integer vector with all elements set to the specified scalar integer value.