[libc-commits] [libc] [libc] Fix incorrectly enabled GPU math functions (PR #83594)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Fri Mar 1 10:01:55 PST 2024
================
@@ -12,7 +12,7 @@
namespace LIBC_NAMESPACE {
LLVM_LIBC_FUNCTION(long long, llround, (double x)) {
- return __builtin_llround(x);
+ return static_cast<long long>(__builtin_round(x));
----------------
jhuber6 wrote:
That's what I was wondering about. Can you give an example where it would fail? I think it'd be reasonable to just use the generic ones.
https://github.com/llvm/llvm-project/pull/83594
More information about the libc-commits
mailing list