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

_m_pextrw
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(10, 20, 30, 40);
 int r = _m_pextrw(a, 1);
 printf("%d\n", r);
 _mm_empty();

 return 0;
}

Prototypes

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