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

vec_splat_u8
ADD TO COMPARE ADDED TO COMPARE

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

Prototypes

Usage:
vector unsigned char result = vec_splat_u8( 5_bit_literal a )
Example:
#include <vecintrin.h>
#include <stdio.h>
int main() {
 unsigned char a = 42;
 vector unsigned char d = vec_splat_u8(a);
 printf("a: %u\n", a);
 printf("d: ");
 for (int i = 0; i < 16; i++) {
   printf("%4u ", 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