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

_mm_extract_ps
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 a single-precision (32-bit) floating-point element from a, selected with c, and store the result in output.
Result:

int

Example:
#include <smmintrin.h>
#include <stdio.h>
int main() {
 __m128 a = _mm_set_ps(4.0f, 3.0f, 2.0f, 1.0f);
 int result = _mm_extract_ps(a, 2);
 float f;
 *((int*)&f) = result;
 printf("%f\n", f);

 return 0;
}

Prototypes

Assembly Instruction:
extractps
Usage:
int result = _mm_extract_ps( __m128 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