You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bug here is actually that the NO_INTRINSICS path on VS 2013+ should not be using roundf because all the other implementations are using round-to-nearest (even). It might be nice to offer an alternative round function that uses the roundf half-way round away from zero rules, but such a round wouldn't be a single instruction for SSE4 or ARM-NEON--filed as new issue.
walbourn
changed the title
XMVectorRound with /arch:AVX doesn't match roundf
XMVectorRound doesn't match roundf
Oct 25, 2016
The
mm_round_ps
intrinsic performs ties to even (a.k.a. banker's rounding): round(0.5) = 0.0 , round(1.5) = 2.0 .The C99
roundf
function performs ties away from zero: round(0.5) = 1.0 , round(1.5) = 2.0 .The text was updated successfully, but these errors were encountered: