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

_mm_mul_pd
ADD TO COMPARE ADDED TO COMPARE

 Location: Arithmetic  >  Vector Multiply
 CPU Extensions: SSE2
Purpose:
Multiply packed double-precision (64-bit) floating-point elements in a and b, and store the results in output.
Result:

A 128-bit vector of 2 x 64-bit double-precision floating-point that hold the result of the multiplication.

Example:
#include <emmintrin.h>
#include <stdio.h>
int main() {
 __m128d a = _mm_setr_pd(1.0, 2.0);
 __m128d b = _mm_setr_pd(3.0, 4.0);
 __m128d result = _mm_mul_pd(a, b);
 double* res = (double*)&result;
 for(int i = 0; i < 2; i++) {
   printf("%f ", res[i]);
  }

  return 0;
 }

Prototypes

Assembly Instruction:
mulpd
Usage:
__m128d result = _mm_mul_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