vec_splat_s32ADD TO COMPARE ADDED TO COMPARE
IBM-Z (64 bits)/ IBM-Z
View official documentation
Location:
Get-Set
>
Vector Duplicate Scalar to All Elements
Purpose:
Returns a vector with each of the 4 signed 32-bits element equal to the given value. Minimum Arch: Z11.
Prototypes
Usage:
vector signed int result =
vec_splat_s32(
5_bit_literal a
)
Example:
#include <vecintrin.h>
#include <stdio.h>
int main() {
signed int a = -42;
vector signed int d = vec_splat_s32(a);
printf("a: %d\n", a);
printf("d: ");
for (int i = 0; i < 4; i++) {
printf("%4d ", d[i]);
}
printf("\n");
return 0;
}
SIMD Intrinsics Summary
| SIMD Engines: | 6 |
| C Intrinsics: | 10444 |
| NEON: | 4353 |
| AVX2: | 405 |
| AVX512: | 4717 |
| SSE4.2: | 598 |
| VSX: | 192 |
| IBM-Z: | 179 |