_mm256_permute_pdADD TO COMPARE ADDED TO COMPARE
Intel 64-bit (64 bits)/ AVX2
View official documentation
View Félix Cloutier's documentation
Purpose:
Shuffle double-precision (64-bit) floating-point elements in a within 128-bit lanes using the control in c, and store the results in output.
Result:
__m256d
Example:
#include <immintrin.h>
#include <stdio.h>
int main() {
__m256d a = _mm256_set_pd(4.0, 3.0, 2.0, 1.0);
__m256d r = _mm256_permute_pd(a, 0b0101);
double *res = (double*)&r;
printf("%f %f %f %f\n", res[0], res[1], res[2], res[3]);
return 0;
}
Prototypes
Assembly Instruction:
vpermilpd
Usage:
__m256d result =
_mm256_permute_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 |