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

Core: Accurate clip instruction #12322

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

TellowKrinkle
Copy link
Member

Description of Changes

Implements a version of CLIP that properly compares floats with max exponent

Also optimizes the flag extraction through the magic of SSE4.1

Rationale behind Changes

In preparation for #12001, I'd like to maintain two code paths for as few instructions as possible. So I'd like to see if any games break when just using an accurate version of CLIP at all times, even when all other ops are getting clamped.

Suggested Testing Steps

See if any games break
See if I made anything slower

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant