We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d22a0f commit 9cc01dfCopy full SHA for 9cc01df
libc/src/__support/FPUtil/dyadic_float.h
@@ -156,13 +156,13 @@ template <size_t Bits> struct DyadicFloat {
156
// d_lo is denormal, but the output is normal.
157
int scale_up_exponent = 1 - exp_lo;
158
T scale_up_factor =
159
- FPBits<T>::create_value(sign,
+ FPBits<T>::create_value(Sign::POS,
160
static_cast<output_bits_t>(
161
FPBits<T>::EXP_BIAS + scale_up_exponent),
162
IMPLICIT_MASK)
163
.get_val();
164
T scale_down_factor =
165
166
167
FPBits<T>::EXP_BIAS - scale_up_exponent),
168
0 commit comments