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

_mm_min_pd
ADD TO COMPARE ADDED TO COMPARE

 Location: Math Functions  >  Vector Minimum
 CPU Extensions: SSE2
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:

__m128d

Example:
#include <emmintrin.h>
#include <stdio.h>
int main() {
 __m128d a = _mm_set_pd(1.5, 2.5);
 __m128d b = _mm_set_pd(0.5, 3.5);
 __m128d result = _mm_min_pd(a, b);
 double resultArray[2];
 _mm_storeu_pd(resultArray, result);
 for (int i = 0; i < 2; i++) {
   printf("%.2f ", resultArray[i]);
  }
  printf("\n");

  return 0;
 }

Prototypes

Assembly Instruction:
minpd
Usage:
__m128d result = _mm_min_pd( __m128d a, __m128d 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