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_atan_helpers_decl.inc 
libclc/clc/lib/generic/math/clc_atan_helpers.inc 
libclc/clc/lib/generic/math/clc_atanpi.cl 
libclc/clc/lib/generic/math/clc_atanpi.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_atan_helpers.inc 
b/libclc/clc/lib/generic/math/clc_atan_helpers.inc
index f5f328dcb..194976f24 100644
--- a/libclc/clc/lib/generic/math/clc_atan_helpers.inc
+++ b/libclc/clc/lib/generic/math/clc_atan_helpers.inc
@@ -23,11 +23,26 @@ __clc_atan_reduced(__CLC_FLOATN v) {
 _CLC_DEF _CLC_OVERLOAD _CLC_CONST __CLC_FLOATN
 __clc_atanpi_reduced(__CLC_FLOATN v) {
   __CLC_GENTYPE t = v * v;
-  __CLC_GENTYPE z = __clc_mad(t, __clc_mad(t, __clc_mad(t, __clc_mad(t,
-            __clc_mad(t, __clc_mad(t, __clc_mad(t, __clc_mad(t,
-                0x1.ccf836p-11f, -0x1.4761e4p-8f), 0x1.b6662ep-7f), 
-0x1.8423b4p-6f),
-                0x1.149cb4p-5f), -0x1.721cccp-5f), 0x1.04a466p-4f), 
-0x1.b2981cp-4f),
-                0x1.45f306p-2f);
+  __CLC_GENTYPE z = __clc_mad(
+      t,
+      __clc_mad(
+          t,
+          __clc_mad(
+              t,
+              __clc_mad(
+                  t,
+                  __clc_mad(t,
+                            __clc_mad(t,
+                                      __clc_mad(t,
+                                                __clc_mad(t, 0x1.ccf836p-11f,
+                                                          -0x1.4761e4p-8f),
+                                                0x1.b6662ep-7f),
+                                      -0x1.8423b4p-6f),
+                            0x1.149cb4p-5f),
+                  -0x1.721cccp-5f),
+              0x1.04a466p-4f),
+          -0x1.b2981cp-4f),
+      0x1.45f306p-2f);
   return v * z;
 }
 
@@ -53,17 +68,67 @@ __clc_atan_reduced(__CLC_DOUBLEN v) {
 _CLC_DEF _CLC_OVERLOAD _CLC_CONST __CLC_DOUBLEN
 __clc_atanpi_reduced(__CLC_DOUBLEN v) {
   __CLC_DOUBLEN t = v * v;
-  __CLC_DOUBLEN z = __clc_mad(t, __clc_mad(t, __clc_mad(t, __clc_mad(t,
-             __clc_mad(t, __clc_mad(t, __clc_mad(t, __clc_mad(t,
-             __clc_mad(t, __clc_mad(t, __clc_mad(t, __clc_mad(t,
-             __clc_mad(t, __clc_mad(t, __clc_mad(t, __clc_mad(t,
-             __clc_mad(t, __clc_mad(t, __clc_mad(t, __clc_mad(t,
-                 0x1.39e58b43320d2p-18, -0x1.be9e52f5df14fp-15), 
0x1.2d7a6cad8e9dbp-12), -0x1.024ebcc10f8a6p-10),
-                 0x1.3df92946a87d8p-9), -0x1.2f04271b6cd94p-8), 
0x1.d91b9a6908690p-8), -0x1.3e1c18f5ea692p-7),
-                 0x1.8253e53662be6p-7), -0x1.ba3db7e462112p-7), 
0x1.ed7188505388cp-7), -0x1.121f707a5851bp-6),
-                 0x1.32b737d7f904ap-6), -0x1.5bac13378ea68p-6), 
0x1.912af944c4411p-6), -0x1.da1babd44fccfp-6),
-                 0x1.21bb945aacd29p-5), -0x1.7483758f7040fp-5), 
0x1.04c26be3b5934p-4), -0x1.b2995e7b7b74dp-4),
-                 0x1.45f306dc9c883p-2);
+  __CLC_DOUBLEN z = __clc_mad(
+      t,
+      __clc_mad(
+          t,
+          __clc_mad(
+              t,
+              __clc_mad(
+                  t,
+                  __clc_mad(
+                      t,
+                      __clc_mad(
+                          t,
+                          __clc_mad(
+                              t,
+                              __clc_mad(
+                                  t,
+                                  __clc_mad(
+                                      t,
+                                      __clc_mad(
+                                          t,
+                                          __clc_mad(
+                                              t,
+                                              __clc_mad(
+                                                  t,
+                                                  __clc_mad(
+                                                      t,
+                                                      __clc_mad(
+                                                          t,
+                                                          __clc_mad(
+                                                              t,
+                                                              __clc_mad(
+                                                                  t,
+                                                                  __clc_mad(
+                                                                      t,
+                                                                      
__clc_mad(
+                                                                          t,
+                                                                          
__clc_mad(
+                                                                              
t,
+                                                                              
__clc_mad(
+                                                                               
   t,
+                                                                               
   0x1.39e58b43320d2p-18,
+                                                                               
   -0x1.be9e52f5df14fp-15),
+                                                                              
0x1.2d7a6cad8e9dbp-12),
+                                                                          
-0x1.024ebcc10f8a6p-10),
+                                                                      
0x1.3df92946a87d8p-9),
+                                                                  
-0x1.2f04271b6cd94p-8),
+                                                              
0x1.d91b9a6908690p-8),
+                                                          
-0x1.3e1c18f5ea692p-7),
+                                                      0x1.8253e53662be6p-7),
+                                                  -0x1.ba3db7e462112p-7),
+                                              0x1.ed7188505388cp-7),
+                                          -0x1.121f707a5851bp-6),
+                                      0x1.32b737d7f904ap-6),
+                                  -0x1.5bac13378ea68p-6),
+                              0x1.912af944c4411p-6),
+                          -0x1.da1babd44fccfp-6),
+                      0x1.21bb945aacd29p-5),
+                  -0x1.7483758f7040fp-5),
+              0x1.04c26be3b5934p-4),
+          -0x1.b2995e7b7b74dp-4),
+      0x1.45f306dc9c883p-2);
   return v * z;
 }
 
@@ -83,7 +148,9 @@ __clc_atanpi_reduced(__CLC_HALFN v) {
   const __CLC_HALFN ch = 0x1.45cp-2h;
   const __CLC_HALFN cl = 0x1.85cp-13h;
   __CLC_HALFN t = v * v;
-  __CLC_HALFN y = __clc_mad(t, __clc_mad(t, __clc_mad(t, 0x1.f04p-8h, 
-0x1.dfp-6h), 0x1.e3p-5h), -0x1.b08p-4h);
+  __CLC_HALFN y = __clc_mad(
+      t, __clc_mad(t, __clc_mad(t, 0x1.f04p-8h, -0x1.dfp-6h), 0x1.e3p-5h),
+      -0x1.b08p-4h);
   __CLC_HALFN ph = v * ch;
   __CLC_HALFN pl = __clc_mad(v, ch, -ph);
   __CLC_HALFN r = __clc_mad(v, __clc_mad(t, y, cl), pl) + ph;

``````````

</details>


https://github.com/llvm/llvm-project/pull/188424
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to