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

_mm256_mul_pd
ADD TO COMPARE ADDED TO COMPARE

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

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

Example:
#include <immintrin.h>
#include <stdio.h>
int main() {
 __m256d a = _mm256_setr_pd(1.0, 2.0, 3.0, 4.0);
 __m256d b = _mm256_setr_pd(4.0, 3.0, 2.0, 1.0);
 __m256d result = _mm256_mul_pd(a, b);
 double* res = (double*)&result;
 for(int i = 0; i < 4; i++) {
   printf("%f ", res[i]);
  }

  return 0;
 }

Prototypes

Assembly Instruction:
vmulpd
Usage:
__m256d result = _mm256_mul_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