We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 918dad5 commit 73c4c32Copy full SHA for 73c4c32
clang/lib/Headers/smmintrin.h
@@ -865,10 +865,8 @@ _mm_max_epu32 (__m128i __V1, __m128i __V2)
865
/// 10: Bits [95:64] of parameter \a X are returned. \n
866
/// 11: Bits [127:96] of parameter \a X are returned.
867
/// \returns A 32-bit integer containing the extracted 32 bits of float data.
868
-#define _mm_extract_ps(X, N) (__extension__ \
869
- ({ union { int __i; float __f; } __t; \
870
- __t.__f = __builtin_ia32_vec_ext_v4sf((__v4sf)(__m128)(X), (int)(N)); \
871
- __t.__i;}))
+#define _mm_extract_ps(X, N) \
+ __builtin_bit_cast(int, __builtin_ia32_vec_ext_v4sf((__v4sf)(__m128)(X), (int)(N)))
872
873
/* Miscellaneous insert and extract macros. */
874
/* Extract a single-precision float from X at index N into D. */
0 commit comments