Please enter what you're looking for to continue your search
 

vec_splat_s16
ADD TO COMPARE ADDED TO COMPARE

 IBM-Z (64 bits)/ IBM-Z  View official documentation
Purpose:
Returns a vector with each of the 8 signed 16-bits element equal to the given value. Minimum Arch: Z11.

Prototypes

Usage:
vector signed short result = vec_splat_s16( 5_bit_literal a )
Example:
#include <vecintrin.h>
#include <stdio.h>
int main() {
 signed short a = -42;
 vector signed short d = vec_splat_s16(a);
 printf("a: %d\n", a);
 printf("d: ");
 for (int i = 0; i < 8; 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