Skip to content

Conversation

@bassiounix
Copy link
Contributor

No description provided.

@llvmbot llvmbot added the libc label Jul 30, 2025
@bassiounix bassiounix requested a review from lntue July 30, 2025 22:48
@llvmbot
Copy link
Member

llvmbot commented Jul 30, 2025

@llvm/pr-subscribers-libc

Author: Muhammad Bassiouni (bassiounix)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/151413.diff

1 Files Affected:

  • (modified) libc/src/math/generic/atan2l.cpp (+1-1)
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

@bassiounix bassiounix merged commit 2b2f579 into main Jul 30, 2025
21 checks passed
@bassiounix bassiounix deleted the users/bassiounix/fix-atan2l branch July 30, 2025 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants