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

Add unsigned_abs to i8,i16,i32,i64 to provide well defined behavior for abs #152

Merged
merged 12 commits into from
May 12, 2024

Conversation

mcroomp
Copy link
Contributor

@mcroomp mcroomp commented May 7, 2024

Add equivalent unsigned_abs that will not fail and returns the proper unsigned integer type. It's possible to do something similar with bitmuck and casts but the code looks horrible. Also added abs to i64 although intel doesn't support it, the other platforms do.

@Lokathor Lokathor self-requested a review May 12, 2024 16:52
@Lokathor Lokathor merged commit 445451e into Lokathor:main May 12, 2024
22 checks passed
@Lokathor
Copy link
Owner

Published wide v0.7.18

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.

2 participants