[libc-commits] [libc] [libc][math] Fix `quick_add` incorrect exponent (PR #220374)
via libc-commits
libc-commits at lists.llvm.org
Wed Sep 2 08:00:52 PDT 2026
================
@@ -139,8 +139,8 @@ template <size_t Bits> struct DyadicFloat {
// Used for aligning exponents. Output might not be normalized.
LIBC_INLINE constexpr DyadicFloat &shift_left(unsigned shift_length) {
+ exponent -= static_cast<int>(shift_length);
if (shift_length < Bits) {
- exponent -= static_cast<int>(shift_length);
mantissa <<= shift_length;
} else {
exponent = 0;
----------------
Sukumarsawant wrote:
done
https://github.com/llvm/llvm-project/pull/220374
More information about the libc-commits
mailing list