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

Added unsigned type arithmetic and type conversion overflow detection. #6

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

Conversation

rwxe
Copy link

@rwxe rwxe commented Sep 28, 2023

Hello @JohnCGriffin
I saw this library recently and thought it was very well written. But as you said there is lack of arithmetic support on unsigned types and type conversion overflow detection like integer type safety libraries in other languages. Although it has been many years, I think it makes sense to perfect it.

I submitted couple commits to this project, which are used to add arithmetic overflow detection for unsigned types, integer type conversion detection with different signs and sizes, add safe absolute value operation and to improve the README and some comments, also merged a PR from @fesiqueira which add a explicit license file.

The newly added code has been tested and benchmarked as the README says, although the benchmark function is not retained in the test file. I still use your username as the download way for this PR, but for the convenience of others before being merged, my fork repo readme is using my username as the download way.

@rwxe rwxe force-pushed the SupportsUnsignedAndTypeConversionFeaturesdev branch from 84aea12 to ba8a0d7 Compare September 29, 2023 06:11
@rwxe rwxe force-pushed the SupportsUnsignedAndTypeConversionFeaturesdev branch 3 times, most recently from fb8d4dc to dae5ef8 Compare October 1, 2023 19: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.

2 participants