Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interpreter: fix rounding of negating FMA instructions #2699

Merged
merged 1 commit into from Jul 19, 2015

Conversation

Tilka
Copy link
Member

@Tilka Tilka commented Jul 5, 2015

x86:     round(-a*c +/- b)
PowerPC: -round(a*c +/- b)

If the rounding mode is set to +/- infinity, the order of round/negate matters.

I'm fine with dropping the Jit64 commit. It seems to work, but it doesn't exactly make the code easier to understand.

x86:     round(-a*c +/- b)
PowerPC: -round(a*c +/- b)

If the rounding mode is set to +/- infinity, the order of round/negate
matters.
@Tilka
Copy link
Member Author

Tilka commented Jul 18, 2015

Dropped the Jit64 commit.

@degasus
Copy link
Member

degasus commented Jul 19, 2015

May ForceSingle generate NaNs? Else you could move this NaN check into the helper functions.

@Tilka
Copy link
Member Author

Tilka commented Jul 19, 2015

No, but the whole point of this PR is that the negation cannot be done before rounding.

@Tilka Tilka changed the title Jit64/Interpreter: fix rounding of negating FMA instructions Interpreter: fix rounding of negating FMA instructions Jul 19, 2015
degasus added a commit that referenced this pull request Jul 19, 2015
Interpreter: fix rounding of negating FMA instructions
@degasus degasus merged commit d622ae3 into dolphin-emu:master Jul 19, 2015
@Tilka Tilka deleted the fnma branch July 19, 2015 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants