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

_mm256_min_pd
ADD TO COMPARE ADDED TO COMPARE

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

Compare packed double-precision (64-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:

__m256d

Example:
#include <immintrin.h>
#include <stdio.h>
int main() {
 __m256d a = _mm256_set_pd(1.5, 2.5, -1.5, 5.5);
 __m256d b = _mm256_set_pd(0.5, 3.5, -0.5, 4.0);
 __m256d result = _mm256_min_pd(a, b);
 double resultArray[4];
 _mm256_storeu_pd(resultArray, result);
 for (int i = 0; i < 4; i++) {
   printf("%.2f ", resultArray[i]);
  }
  printf("\n");

  return 0;
 }

Prototypes

Assembly Instruction:
vminpd
Usage:
__m256d result = _mm256_min_pd( __m256d a, __m256d 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