[libclc] [libclc] Add (fast) normalize to CLC; add half overloads (PR #139759)

via cfe-commits cfe-commits at lists.llvm.org
Tue May 13 09:11:33 PDT 2025


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 HEAD~1 HEAD --extensions h,inc,cl -- libclc/clc/include/clc/geometric/clc_fast_normalize.h libclc/clc/include/clc/geometric/clc_normalize.h libclc/clc/lib/generic/geometric/clc_fast_normalize.cl libclc/clc/lib/generic/geometric/clc_fast_normalize.inc libclc/clc/lib/generic/geometric/clc_normalize.cl libclc/clc/lib/generic/geometric/clc_normalize.inc libclc/generic/lib/geometric/fast_normalize.cl libclc/generic/lib/geometric/normalize.cl
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libclc/clc/lib/generic/geometric/clc_fast_normalize.cl b/libclc/clc/lib/generic/geometric/clc_fast_normalize.cl
index c34418c5f..85684d0f4 100644
--- a/libclc/clc/lib/generic/geometric/clc_fast_normalize.cl
+++ b/libclc/clc/lib/generic/geometric/clc_fast_normalize.cl
@@ -6,8 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clc/geometric/clc_normalize.h>
 #include <clc/geometric/clc_dot.h>
+#include <clc/geometric/clc_normalize.h>
 #include <clc/math/clc_half_rsqrt.h>
 
 #define __FLOAT_ONLY

``````````

</details>


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


More information about the cfe-commits mailing list