We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83965ea commit feaeaf5Copy full SHA for feaeaf5
1 file changed
Inc/DirectXMathVector.inl
@@ -1241,6 +1241,7 @@ inline XMVECTOR XM_CALLCONV XMVectorSwizzle
1241
return _mm_permutevar_ps(V, vControl);
1242
#else
1243
#if defined(__GNUC__) && !defined(__clang__)
1244
+ // workaround some GCC optimization behavior that breaks this function
1245
XMVECTORU32 T;
1246
T.v = V;
1247
auto aPtr = reinterpret_cast<const uint32_t*>(&T);
@@ -1319,6 +1320,7 @@ inline XMVECTOR XM_CALLCONV XMVectorPermute
1319
1320
const uint32_t* aPtr[2];
1321
1322
1323
1324
XMVECTORU32 T1;
1325
T1.v = V1;
1326
XMVECTORU32 T2;
0 commit comments