[libc] [llvm] [libc][math] Improve atanf performance. (PR #85463)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 15 13:46:03 PDT 2024
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 f75d164eeaf407b21ec6b2cff4bcc3ad2003af61 2e5993fc5ad61b81c3680bfed551f08824d77d73 -- libc/src/math/generic/atanf.cpp libc/src/math/generic/inv_trigf_utils.cpp libc/src/math/generic/inv_trigf_utils.h libc/test/src/math/exhaustive/atanf_test.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/src/math/generic/atanf.cpp b/libc/src/math/generic/atanf.cpp
index 2ed5135c66..cf0dbc1da6 100644
--- a/libc/src/math/generic/atanf.cpp
+++ b/libc/src/math/generic/atanf.cpp
@@ -7,6 +7,7 @@
//===----------------------------------------------------------------------===//
#include "src/math/atanf.h"
+#include "inv_trigf_utils.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/PolyEval.h"
#include "src/__support/FPUtil/except_value_utils.h"
@@ -14,7 +15,6 @@
#include "src/__support/FPUtil/nearest_integer.h"
#include "src/__support/FPUtil/rounding_mode.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
-#include "inv_trigf_utils.h"
namespace LIBC_NAMESPACE {
``````````
</details>
https://github.com/llvm/llvm-project/pull/85463
More information about the llvm-commits
mailing list