[libclc] [libclc] Move (fast) length & distance to CLC library (PR #139701)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Tue May 13 03:30:42 PDT 2025


================
@@ -43,7 +43,9 @@ _CLC_OVERLOAD _CLC_DEF __CLC_SCALAR_GENTYPE __clc_length(__CLC_GENTYPE p) {
   if (l2 < __CLC_GENTYPE_MIN) {
     p *= __CLC_GENTYPE_MIN_SCALE_UP;
     return __clc_sqrt(__clc_dot(p, p)) * __CLC_GENTYPE_MIN_SCALE_DOWN;
-  } else if (l2 == INFINITY) {
+  }
+
+  if (l2 == INFINITY) {
----------------
arsenm wrote:

Avoid mixing other changes and move in one change 

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


More information about the cfe-commits mailing list