diff --git a/Extensions/DirectXMathAVX.h b/Extensions/DirectXMathAVX.h index ea91539..b7ff18a 100644 --- a/Extensions/DirectXMathAVX.h +++ b/Extensions/DirectXMathAVX.h @@ -143,12 +143,12 @@ namespace Internal static XMVECTOR XM_CALLCONV Permute(FXMVECTOR v1, FXMVECTOR v2) { static const XMVECTORU32 selectMask = - { + { { { WhichX ? 0xFFFFFFFF : 0, - WhichY ? 0xFFFFFFFF : 0, - WhichZ ? 0xFFFFFFFF : 0, - WhichW ? 0xFFFFFFFF : 0, - }; + WhichY ? 0xFFFFFFFF : 0, + WhichZ ? 0xFFFFFFFF : 0, + WhichW ? 0xFFFFFFFF : 0, + } } }; XMVECTOR shuffled1 = _mm_permute_ps(v1, Shuffle); XMVECTOR shuffled2 = _mm_permute_ps(v2, Shuffle); diff --git a/Extensions/DirectXMathAVX2.h b/Extensions/DirectXMathAVX2.h index e7b4d2a..250d793 100644 --- a/Extensions/DirectXMathAVX2.h +++ b/Extensions/DirectXMathAVX2.h @@ -487,12 +487,12 @@ namespace Internal static XMVECTOR XM_CALLCONV Permute(FXMVECTOR v1, FXMVECTOR v2) { static const XMVECTORU32 selectMask = - { + { { { WhichX ? 0xFFFFFFFF : 0, WhichY ? 0xFFFFFFFF : 0, WhichZ ? 0xFFFFFFFF : 0, WhichW ? 0xFFFFFFFF : 0, - }; + } } }; XMVECTOR shuffled1 = _mm_permute_ps(v1, Shuffle); XMVECTOR shuffled2 = _mm_permute_ps(v2, Shuffle);