-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[libc][math] Optimize nearest integer functions using builtins when available #98376
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
Changes from all commits
89504b9
c83a56e
fddf018
80c9798
9e8d9a8
3fccb21
8970edf
7f212a3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
float try_builtin_ceilf(float x) { return __builtin_ceilf(x); } | ||
float try_builtin_floorf(float x) { return __builtin_floorf(x); } | ||
float try_builtin_rintf(float x) { return __builtin_rintf(x); } | ||
float try_builtin_truncf(float x) { return __builtin_truncf(x); } | ||
|
||
double try_builtin_ceil(double x) { return __builtin_ceil(x); } | ||
double try_builtin_floor(double x) { return __builtin_floor(x); } | ||
double try_builtin_rint(double x) { return __builtin_rint(x); } | ||
double try_builtin_trunc(double x) { return __builtin_trunc(x); } | ||
|
||
extern "C" void _start() {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
float try_builtin_roundf(float x) { return __builtin_roundf(x); } | ||
|
||
double try_builtin_round(double x) { return __builtin_round(x); } | ||
|
||
extern "C" void _start() {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
float try_builtin_roundevenf(float x) { return __builtin_roundevenf(x); } | ||
|
||
double try_builtin_roundeven(double x) { return __builtin_roundeven(x); } | ||
|
||
extern "C" void _start() {} |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
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.
It would be nice if we had a CMake formatter. I copied the style from the lines above, but the
OR
line is longer than 80 chars (just like above).