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: optimize NaN checks #2586

Merged
merged 2 commits into from Jun 10, 2015
Merged

Conversation

Tilka
Copy link
Member

@Tilka Tilka commented Jun 10, 2015

NaNs always propagate, so we can get away with only checking for NaN inputs in the rare case that the result is NaN (as already done in Jit64::HandleNaNs()).

@degasus
Copy link
Member

degasus commented Jun 10, 2015

LGTM

double t = a * c;
if (t != t)
{
if (a != a) return a;
if (b != b) return b;

This comment was marked as off-topic.

This comment was marked as off-topic.

@Parlane
Copy link
Member

Parlane commented Jun 10, 2015

Now that I understand this, LGTM :) 👍

NaNs always propagate, so we can get away with only checking for NaN
inputs in the rare case that the result is NaN (as already done in
Jit64::HandleNaNs()).
@Parlane
Copy link
Member

Parlane commented Jun 10, 2015

LGTM

Tilka added a commit that referenced this pull request Jun 10, 2015
Interpreter: optimize NaN checks
@Tilka Tilka merged commit 6bc8599 into dolphin-emu:master Jun 10, 2015
@Tilka Tilka deleted the interpreter_nans branch June 10, 2015 13:30
@dolphin-emu-bot
Copy link
Contributor

FifoCI detected that this change impacts graphical rendering. Here are the behavior differences detected by the system:

automated-fifoci-reporter

@Icekhaos
Copy link

What is the performance difference?

@degasus
Copy link
Member

degasus commented Jun 10, 2015

To not check all inputs for being NaNs within the interpreter. For general gameplay: none

@Tilka
Copy link
Member Author

Tilka commented Jun 14, 2015

@Icekhaos Thanks for the praise, but please use this forum thread for that instead. In general, please remember that many contributors get a notification email for every single comment you post on GitHub.

@dolphin-emu dolphin-emu locked and limited conversation to collaborators Jun 14, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
5 participants