_mm_extract_epi32ADD TO COMPARE ADDED TO COMPARE
Intel 64-bit (64 bits)/ SSE4.2
View official documentation
Purpose:
Extract a 32-bit integer from a, selected with c, and store the result in output.
Result:
int
Example:
#include <smmintrin.h>
#include <stdio.h>
int main() {
__m128i a = _mm_set_epi32(400, 300, 200, 100);
int result = _mm_extract_epi32(a, 2);
printf("%d\n", result);
return 0;
}
Prototypes
Assembly Instruction:
pextrd
Usage:
int result =
_mm_extract_epi32(
_m128i a, const 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 |