_mm256_extract_epi16ADD TO COMPARE ADDED TO COMPARE
Intel 64-bit (64 bits)/ AVX2
View official documentation
Purpose:
Extract a 16-bit integer from a, selected with index c, and store the result in output.
Result:
int
Example:
#include <immintrin.h>
#include <stdio.h>
int main() {
__m256i a = _mm256_set_epi16(15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0);
int r = _mm256_extract_epi16(a, 5);
printf("%d\n", r);
return 0;
}
Prototypes
Assembly Instruction:
SEQUENCE
Usage:
int result =
_mm256_extract_epi16(
__m256i a, const int b
)
SIMD Intrinsics Summary
| SIMD Engines: | 6 |
| C Intrinsics: | 10444 |
| NEON: | 4353 |
| AVX2: | 405 |
| AVX512: | 4717 |
| SSE4.2: | 598 |
| VSX: | 192 |
| IBM-Z: | 179 |