Details
- Reviewers
ldionne Mordante var-const huixie90 - Group Reviewers
Restricted Project - Commits
- rGb0a29f691154: [libc++][math.h] Remove __libcpp_<func> functions and instead call builtins…
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
In general a nice cleanup, but I have a question.
libcxx/include/math.h | ||
---|---|---|
532 | This one and the next ones didn't call a __builtin. Does this work on all supported platforms? |
libcxx/include/math.h | ||
---|---|---|
532 | I think the builtin just resolves to either a compiler-rt/libgcc function call or an instruction on most (all?) platforms. At least on x86, armv7 and powerpc64: https://godbolt.org/z/8cb4z98hz, so I think it's fine. In glibc the normal functions are just aliases to the builtins. |
libcxx/include/math.h | ||
---|---|---|
532 | Let's see what the CI says. If it's happy I'm happy. I like to see it run before approving. (It now fails to apply.) |
LGTM if CI is happy. This is a nice simplification and it gets us much closer to working on freestanding implementation that don't have a complete <math.h> implementation.
This one and the next ones didn't call a __builtin. Does this work on all supported platforms?