_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.

For more complete information about compiler optimizations, see our Optimization Notice.