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

_mm256_min_ps
ADD TO COMPARE ADDED TO COMPARE

 Location: Math Functions  >  Vector Minimum
 CPU Extensions: AVX
Purpose:

Compare packed single-precision (32-bit) floating-point elements in a and b, and store packed minimum values in output.
output does not follow the IEEE Standard for Floating-Point Arithmetic (IEEE 754) minimum value when inputs are NaN or signed-zero values.

Result:

__m256

Example:
#include <immintrin.h>
#include <stdio.h>
int main() {
 __m256 a = _mm256_set_ps(1.0f, 2.0f, -1.0f, 5.0f, -2.0f, 4.0f, 0.5f, 3.0f);
 __m256 b = _mm256_set_ps(0.5f, 3.5f, -0.5f, 4.0f, -1.0f, 3.0f, 1.0f, 2.5f);
 __m256 result = _mm256_min_ps(a, b);
 float resultArray[8];
 _mm256_storeu_ps(resultArray, result);
 for (int i = 0; i < 8; i++) {
   printf("%.2f ", resultArray[i]);
  }
  printf("\n");

  return 0;
 }

Prototypes

Assembly Instruction:
vminps
Usage:
__m256 result = _mm256_min_ps( __m256 a, __m256 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