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

Support signed integers for bswap intrinsic #174

Merged
merged 1 commit into from
Dec 13, 2024
Merged

Conversation

LegNeato
Copy link
Collaborator

@LegNeato LegNeato commented Dec 9, 2024

Fixes #169

@LegNeato
Copy link
Collaborator Author

LegNeato commented Dec 9, 2024

Not sure where we add runtime tests? Edit: Looks like we don't have these yet :-(

@LegNeato
Copy link
Collaborator Author

LegNeato commented Dec 10, 2024

@FractalFir No rush, but I would love it if you can confirm this fixes the issue you saw. If you are busy, no worries (I did a couple of manual tests)!

@FractalFir
Copy link
Contributor

It seems to work fine, and fix the original issue. There is a very slim chance I missed something, but it should be OK.

@LegNeato
Copy link
Collaborator Author

Well, even if it is wrong it is better than a panic I guess. Thanks for testing!

@LegNeato LegNeato merged commit c52845f into Rust-GPU:main Dec 13, 2024
7 checks passed
@LegNeato LegNeato deleted the bswap branch December 13, 2024 00:35
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.

buggy bswap implementation seems to assume unsigned arguments
2 participants