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

_mm512_abs_pd
ADD TO COMPARE ADDED TO COMPARE

 Intel 64-bit (64 bits)/ AVX512  View official documentation
 Location: Arithmetic  >  Vector Absolute Value
 CPU Extensions: AVX512F
Purpose:
Finds the absolute value of each packed double-precision (64-bit) floating-point element in a, storing the results in output.
Result:

A 512-bit vector of 8 x 64-bit double-precision floating-point numbers that hold the absolute values of the input elements.

Example:
#include <immintrin.h>
#include <stdio.h>
int main() {
 __m512d v2 = _mm512_set_pd(-1.0, 2.0, -3.0, 4.0, -5.0, 6.0, -7.0, 8.0);
 __m512d result = _mm512_abs_pd(v2);
 double result_data[8];
 _mm512_storeu_pd(result_data, result);
 for (int i = 0; i < 8; i++) {
   printf("%f ", result_data[i]);
  }
  printf("\n");

  return 0;
 }

Prototypes

Assembly Instruction:
vpandq
Usage:
__m512d result = _mm512_abs_pd( __m512d a )
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