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

Shift then mask, rather than mask then shift #453

Closed
wants to merge 1 commit into from

Conversation

tgross35
Copy link
Contributor

This may allow for small optimizations with larger float types since u32 math can be used after shifting. LLVM may be already getting this anyway.

This may allow for small optimizations with larger float types since
`u32` math can be used after shifting. LLVM may be already getting this
anyway.
@tgross35
Copy link
Contributor Author

I am going to wait until the floor and ceil PRs merge so the difference, if any, stands out in benchmarks.

@tgross35
Copy link
Contributor Author

Merged as part of #436.

@tgross35 tgross35 closed this Jan 22, 2025
@tgross35 tgross35 deleted the shift-mask-invert branch January 22, 2025 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant