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

_mm_extract_epi8
ADD TO COMPARE ADDED TO COMPARE

 Intel 64-bit (64 bits)/ SSE4.2  View official documentation
 Location: Get-Set  >  Vector Get Single element
 CPU Extensions: SSE4.1
Purpose:
Extract an 8-bit integer from a, selected with c, and store the result in the lower element of output.
Result:

int

Example:
#include <smmintrin.h>
#include <stdio.h>
int main() {
 __m128i a = _mm_set_epi8(        15, 14, 13, 12, 11, 10, 9, 8,        7, 6, 5, 4, 3, 2, 1, 0    );
 int result = _mm_extract_epi8(a, 10);
 printf("%d\n", result);

 return 0;
}

Prototypes

Assembly Instruction:
pextrb
Usage:
int result = _mm_extract_epi8( __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