[libc] [llvm] [libc][math] Refactor atan2f implementation to header-only in src/__support/math folder. (PR #150993)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 30 19:08:24 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp,h -- libc/shared/math/atan2f.h libc/src/__support/math/atan2f.h libc/shared/math.h libc/src/math/generic/atan2f.cpp libc/test/shared/shared_math_test.cpp libc/src/__support/math/atan2f_float.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/src/__support/math/atan2f_float.h b/libc/src/__support/math/atan2f_float.h
index 01d3fb162..8bd70958a 100644
--- a/libc/src/__support/math/atan2f_float.h
+++ b/libc/src/__support/math/atan2f_float.h
@@ -242,4 +242,4 @@ LIBC_INLINE static constexpr float atan2f(float y, float x) {
} // namespace LIBC_NAMESPACE_DECL
-#endif // LIBC_SRC___SUPPORT_MATH_ATAN2F_FLOAT_H
+#endif // LIBC_SRC___SUPPORT_MATH_ATAN2F_FLOAT_H
``````````
</details>
https://github.com/llvm/llvm-project/pull/150993
More information about the llvm-commits
mailing list