[libc-commits] [libc] [libc][stdfix] Implement `countlsfx` functions in libc. (PR #126597)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Tue Feb 11 14:08:33 PST 2025


================
@@ -185,9 +185,10 @@ countls(T f) {
   using BitType = typename FXRep::StorageType;
   using FXBits = FXBits<T>;
 
-  if constexpr (FXRep::SIGN_LEN > 0)
+  if constexpr (FXRep::SIGN_LEN > 0) {
     if (f < 0)
       f = bit_not(f);
+  }
----------------
nickdesaulniers wrote:

ah, you had this correct before

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


More information about the libc-commits mailing list