[libc-commits] [libc] [libc][math] fix atan2l build failure. (PR #151413)
via libc-commits
libc-commits at lists.llvm.org
Wed Jul 30 15:49:01 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Muhammad Bassiouni (bassiounix)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/151413.diff
1 Files Affected:
- (modified) libc/src/math/generic/atan2l.cpp (+1-1)
``````````diff
diff --git a/libc/src/math/generic/atan2l.cpp b/libc/src/math/generic/atan2l.cpp
index 51c56d5e75cba..a7824c62fd8cc 100644
--- a/libc/src/math/generic/atan2l.cpp
+++ b/libc/src/math/generic/atan2l.cpp
@@ -17,7 +17,7 @@ namespace LIBC_NAMESPACE_DECL {
LLVM_LIBC_FUNCTION(long double, atan2l, (long double y, long double x)) {
#if defined(LIBC_TYPES_LONG_DOUBLE_IS_FLOAT64)
return static_cast<long double>(
- atan2(static_cast<double>(y), static_cast<double>(x)));
+ math::atan2(static_cast<double>(y), static_cast<double>(x)));
#else
#error "Extended precision is not yet supported"
#endif
``````````
</details>
https://github.com/llvm/llvm-project/pull/151413
More information about the libc-commits
mailing list