|
Dieser Artikel wurde maschinell übersetzt. Bewegen Sie den Mauszeiger über die Sätze im Artikel, um den Originaltext anzuzeigen.
|
Übersetzung
Original
|
_mm_extract_ps
Visual Studio 2012
[Diese Dokumentation ist nur eine Vorschau und wird in späteren Versionen ggf. geändert. Blank topics are included as placeholders.]
Microsoft-spezifisch
int _mm_extract_ps(
__m128 a,
const int ndx
);
#include <stdio.h>
#include <smmintrin.h>
int main ()
{
__m128 a;
const int ndx = 1;
a.m128_f32[0] = 1.25;
a.m128_f32[1] = -5.125;
a.m128_f32[2] = 16.0;
a.m128_f32[3] = 3.5;
int res = _mm_extract_ps(a, ndx);
// Note: These are printed out in hex format to easily identify that the float and corresponding
// integer value are identical
printf_s("Result res should equal %x: %x\n", a.m128_u32[ndx], res);
return 0;
}
Ergebnis RES soll c0a40000 entsprechen: c0a40000