-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
libc: implement common abs
for various integer sizes
#23893
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
base: master
Are you sure you want to change the base?
Conversation
That means you can delete the duplicate libc implementations. |
e730278
to
4bbb5df
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I think it would be nice to use @abs
in the implementation, but it's not required.
I tried this locally (linux) and it works with |
Previously all the functions that were exported were handled equally, though some may exist and some not inside the same file. Moving the checks inside the file allows handling different functions differently
Co-authored-by: Alex Rønne Petersen <[email protected]>
Co-authored-by: Alex Rønne Petersen <[email protected]>
9e146a3
to
18a2714
Compare
Implemented common libc functions:
abs
imaxabs
labs
llabs
abs functions for floating point numbers are already implemented in compiler_rt.