[libc-commits] [libc] [libc][math] fix atan2l build failure. (PR #151413)
Muhammad Bassiouni via libc-commits
libc-commits at lists.llvm.org
Wed Jul 30 15:48:27 PDT 2025
https://github.com/bassiounix created https://github.com/llvm/llvm-project/pull/151413
None
>From 0fd06efc39a8eae5ced2bb004d41b37b46b09824 Mon Sep 17 00:00:00 2001
From: bassiounix <muhammad.m.bassiouni at gmail.com>
Date: Thu, 31 Jul 2025 01:47:49 +0300
Subject: [PATCH] [libc][math] fix atan2l build failure.
---
libc/src/math/generic/atan2l.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
More information about the libc-commits
mailing list