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

_mm_extract_pi16
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: SSE
Purpose:
Extract a 16-bit integer from a, selected with imm8, and store the result in the lower element of output.
Result:

int

Example:
#include <xmmintrin.h>
#include <stdio.h>
int main() {
 __m64 a = _mm_set_pi16(5, 4, 3, 2);
 int r = _mm_extract_pi16(a, 2);
 printf("%d\n", r);
 _mm_empty();

 return 0;
}

Prototypes

Assembly Instruction:
pextrw
Usage:
int result = _mm_extract_pi16( __m64 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