[libclc] libclc: revert commits that broke libclc (PR #189781)

via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 31 18:01:10 PDT 2026


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/include/clc/math/clc_sincos_helpers_fp64_decl.inc libclc/clc/include/clc/math/remquo_decl.inc libclc/clc/lib/generic/math/clc_atan2.cl libclc/clc/lib/generic/math/clc_atan2.inc libclc/clc/lib/generic/math/clc_atan2pi.cl libclc/clc/lib/generic/math/clc_atan2pi.inc libclc/clc/lib/generic/math/clc_remainder.cl libclc/clc/lib/generic/math/clc_remquo.cl libclc/clc/lib/generic/math/clc_remquo.inc libclc/clc/lib/generic/math/clc_sinpi.cl libclc/clc/lib/generic/math/clc_sinpi.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_remquo.inc b/libclc/clc/lib/generic/math/clc_remquo.inc
index cf8a5ebce..79ce0fef1 100644
--- a/libclc/clc/lib/generic/math/clc_remquo.inc
+++ b/libclc/clc/lib/generic/math/clc_remquo.inc
@@ -218,7 +218,7 @@ _CLC_DEF _CLC_OVERLOAD double __clc_remquo(double x, double y,
   quo = c ? 0 : quo;
   ret = c ? x : ret;
 
-  c &= (yexp < 1023 & 2.0 * dx > dy) | (dx > 0.5 * dy);
+  c &= (yexp<1023 & 2.0 * dx> dy) | (dx > 0.5 * dy);
   quo = c ? qsgn : quo;
   // we could use a conversion here instead since qsgn = +-1
   p = qsgn == 1 ? -1.0 : 1.0;

``````````

</details>


https://github.com/llvm/llvm-project/pull/189781


More information about the cfe-commits mailing list