[libc-commits] [libc] [libc][math][c23] Add hypotf16 function (PR #131991)

via libc-commits libc-commits at lists.llvm.org
Sat Mar 29 19:41:41 PDT 2025


================
@@ -30,7 +30,7 @@ LIBC_INLINE T find_leading_one(T mant, int &shift_length) {
   if (mant > 0) {
     shift_length = (sizeof(mant) * 8) - 1 - cpp::countl_zero(mant);
   }
-  return T(1) << shift_length;
+  return (T)(T(1) << shift_length);
----------------
lntue wrote:

nit: use C++ cast

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


More information about the libc-commits mailing list