[libc-commits] [libc] [libc] Float80 Emulation in LLVM libc (PR #214447)

via libc-commits libc-commits at lists.llvm.org
Thu Aug 20 08:52:19 PDT 2026


================
@@ -256,10 +256,12 @@ template <size_t Bits> struct DyadicFloat {
             static_cast<StorageType>(unbiased_exp + FPBits::EXP_BIAS);
       }
 
-      MantissaType round_mask = MantissaType(1) << (extra_fraction_len - 1);
-      round = (mantissa & round_mask) != 0;
-      MantissaType sticky_mask = round_mask - 1;
-      sticky = (mantissa & sticky_mask) != 0;
+      if (extra_fraction_len > 0) {
----------------
overmighty wrote:

No need.

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


More information about the libc-commits mailing list