[flang-commits] [flang] [flang] Use libm routine for compile-time folding on AIX (PR #114106)
via flang-commits
flang-commits at lists.llvm.org
Tue Oct 29 10:51:07 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 b6e9ba017f222b2f95237d69126281d6252bf176 1742f2aa7bc57123c4a7df53dc2976b0cd589bb8 --extensions c,cpp -- flang/lib/Evaluate/wrappers.c flang/lib/Evaluate/intrinsics-library.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/lib/Evaluate/wrappers.c b/flang/lib/Evaluate/wrappers.c
index b0823cac45..3d2c13e2ed 100644
--- a/flang/lib/Evaluate/wrappers.c
+++ b/flang/lib/Evaluate/wrappers.c
@@ -1,15 +1,13 @@
#include <complex.h>
-void csqrtf_wrapper(const float x[2], float res[2])
-{
+void csqrtf_wrapper(const float x[2], float res[2]) {
float complex c = x[0] + I * x[1];
float complex r = csqrtf(c);
res[0] = crealf(r);
res[1] = cimagf(r);
}
-void csqrt_wrapper(const double x[2], double res[2])
-{
+void csqrt_wrapper(const double x[2], double res[2]) {
double complex c = x[0] + I * x[1];
double complex r = csqrt(c);
res[0] = creal(r);
``````````
</details>
https://github.com/llvm/llvm-project/pull/114106
More information about the flang-commits
mailing list