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

vec_splat_u8
ADD TO COMPARE ADDED TO COMPARE

 IBM Power 9 64-bit (64 bits)/ VSX  View official documentation
Purpose:

Returns a vector with all elements equal to the given value.

Result:

The 5-bit signed value of a is sign-extended to a byte and the resulting value is cast to an unsigned char. This value is placed in each element of output. The range of the original value is [-16:15].

Prototypes

Assembly Instruction:
vspltisb
Usage:
vector unsigned char result = vec_splat_u8( 5_bit_literal a )
Performance Metrics:
📊 Unlock Performance Insights

Get access to detailed performance metrics including latency, throughput, and CPU-specific benchmarks for this intrinsic.

Example:
#include <altivec.h>
#include <stdio.h>
int main() {
 vector unsigned char r = vec_splat_u8(1);
 for (int i = 0; i < 16; i++) {
   printf("%u ", r[i]);
  }

  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