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

vminq_u8
ADD TO COMPARE ADDED TO COMPARE

 Arm 64-bit (64 bits)/ NEON  View official documentation
 Location: Math Functions  >  Vector Minimum
 Supported Architectures: v7, A32, A64
Purpose:

VMIN compares corresponding elements in two vectors, and returns the smaller of each pair.

Result:

uint8x16_t

Example:
#include <arm_neon.h>
#include <stdio.h>
int main() {
 uint8_t a_array[16] = {
  10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160
 };
 uint8_t b_array[16] = {
  5, 15, 25, 35, 45, 55, 65, 75, 85, 95, 105, 115, 125, 135, 145, 155
 };
 uint8x16_t a = vld1q_u8(a_array);
 uint8x16_t b = vld1q_u8(b_array);
 uint8x16_t result = vminq_u8(a, b);
 uint8_t result_array[16];
 vst1q_u8(result_array, result);
 printf("Result: ");
 for (int i = 0; i < 16; i++) {
   printf("%d ", result_array[i]);
  }
  printf("\n");

  return 0;
 }

Prototypes

Assembly Instruction:
UMIN
Usage:
uint8x16_t result = vminq_u8( uint8x16_t a, uint8x16_t b )
Performance Metrics:
📊 Unlock Performance Insights

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

SIMD Intrinsics Summary
SIMD Engines: 6
C Intrinsics: 10444
NEON: 4353
AVX2: 405
AVX512: 4717
SSE4.2: 598
VSX: 192
IBM-Z: 179