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 inc --
libclc/clc/lib/generic/math/clc_sincospi.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_sincospi.inc
b/libclc/clc/lib/generic/math/clc_sincospi.inc
index 4ec41fd78..a25e00094 100644
--- a/libclc/clc/lib/generic/math/clc_sincospi.inc
+++ b/libclc/clc/lib/generic/math/clc_sincospi.inc
@@ -30,8 +30,7 @@ __clc_sincospi(__CLC_GENTYPE x, __private __CLC_GENTYPE
*cos_out) {
__CLC_GENTYPE c = odd ? -eval.sin : eval.cos;
__CLC_GENTYPE sin = __CLC_AS_GENTYPE(sin_val);
__CLC_GENTYPE zero = __CLC_FP_LIT(0.0);
- __CLC_S_GENTYPE signed_zero =
- __CLC_AS_S_GENTYPE(x) & __CLC_GENTYPE_S_SIGNBIT;
+ __CLC_S_GENTYPE signed_zero = __CLC_AS_S_GENTYPE(x) &
__CLC_GENTYPE_S_SIGNBIT;
sin = __clc_select(sin, __CLC_AS_GENTYPE(signed_zero),
__CLC_CONVERT_S_GENTYPE(sin == zero));
``````````
</details>
https://github.com/llvm/llvm-project/pull/199974
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits