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 origin/main HEAD --extensions cl,inc --
libclc/clc/lib/generic/math/clc_log.cl libclc/clc/lib/generic/math/clc_log10.cl
libclc/clc/lib/generic/math/clc_log2.cl
libclc/clc/lib/generic/math/clc_log_base.inc --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libclc/clc/lib/generic/math/clc_log_base.inc
b/libclc/clc/lib/generic/math/clc_log_base.inc
index f6b34f242..a2905de5d 100644
--- a/libclc/clc/lib/generic/math/clc_log_base.inc
+++ b/libclc/clc/lib/generic/math/clc_log_base.inc
@@ -187,12 +187,20 @@ __clc_log(__CLC_DOUBLEN a)
__CLC_EP_PAIR x = __clc_ep_div(m - 1.0, __clc_ep_fast_add(1.0, m));
__CLC_DOUBLEN s = x.hi * x.hi;
- __CLC_DOUBLEN p = __clc_mad(s, __clc_mad(s, __clc_mad(s,
- __clc_mad(s, __clc_mad(s, __clc_mad(s, 0x1.3ab76bf559e2bp-3,
0x1.385386b47b09ap-3),
- 0x1.7474dd7f4df2ep-3), 0x1.c71c016291751p-3),
- 0x1.249249b27acf1p-2), 0x1.99999998ef7b6p-2),
0x1.5555555555780p-1);
- __CLC_EP_PAIR r =
- __clc_ep_fast_add(__clc_ep_ldexp(x, 1), s * x.hi * p);
+ __CLC_DOUBLEN p = __clc_mad(
+ s,
+ __clc_mad(s,
+ __clc_mad(s,
+ __clc_mad(s,
+ __clc_mad(s,
+ __clc_mad(s,
0x1.3ab76bf559e2bp-3,
+ 0x1.385386b47b09ap-3),
+ 0x1.7474dd7f4df2ep-3),
+ 0x1.c71c016291751p-3),
+ 0x1.249249b27acf1p-2),
+ 0x1.99999998ef7b6p-2),
+ 0x1.5555555555780p-1);
+ __CLC_EP_PAIR r = __clc_ep_fast_add(__clc_ep_ldexp(x, 1), s * x.hi * p);
#if defined COMPILING_LOG2
r = __clc_ep_add(
``````````
</details>
https://github.com/llvm/llvm-project/pull/187537
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits