Skip to content

Commit 9c00b27

Browse files
committed
XMVectorClamp fix for specials
1 parent 4d3f12c commit 9c00b27

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Inc/DirectXMathVector.inl

+4-4
Original file line numberDiff line numberDiff line change
@@ -2552,13 +2552,13 @@ inline XMVECTOR XM_CALLCONV XMVectorClamp
25522552

25532553
#elif defined(_XM_ARM_NEON_INTRINSICS_)
25542554
XMVECTOR vResult;
2555-
vResult = vmaxq_f32(Min,V);
2556-
vResult = vminq_f32(vResult,Max);
2555+
vResult = vmaxq_f32(Min, V);
2556+
vResult = vminq_f32(Max, vResult);
25572557
return vResult;
25582558
#elif defined(_XM_SSE_INTRINSICS_)
25592559
XMVECTOR vResult;
2560-
vResult = _mm_max_ps(Min,V);
2561-
vResult = _mm_min_ps(vResult,Max);
2560+
vResult = _mm_max_ps(Min, V);
2561+
vResult = _mm_min_ps(Max, vResult);
25622562
return vResult;
25632563
#endif
25642564
}

0 commit comments

Comments
 (0)