_mm256_permutex_pdADD TO COMPARE ADDED TO COMPARE
Intel 64-bit (64 bits)/ AVX512
View official documentation
View Félix Cloutier's documentation
Purpose:
Shuffle double-precision (64-bit) floating-point elements in "a" across lanes using the control in "imm8", and store the results in "dst".
Result:
__m256d
Example:
#include <immintrin.h>
#include <stdio.h>
int main() {
__m256d a = _mm256_setr_pd(1.0, 2.0, 3.0, 4.0);
__m256d r = _mm256_permutex_pd(a, 0b00011011);
double out[4];
_mm256_storeu_pd(out, r);
for (int i = 0; i < 4; i++)
printf("%.1f\n", out[i]);
}
Prototypes
Assembly Instruction:
vpermpd
Usage:
__m256d result =
_mm256_permutex_pd(
__m256d a, int 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 |