Skip to content

Commit 9cc01df

Browse files
committed
fixup! [libc][math][c23] Add f16subf C23 math function
Fix conversion to output type.
1 parent 8d22a0f commit 9cc01df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/src/__support/FPUtil/dyadic_float.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,13 @@ template <size_t Bits> struct DyadicFloat {
156156
// d_lo is denormal, but the output is normal.
157157
int scale_up_exponent = 1 - exp_lo;
158158
T scale_up_factor =
159-
FPBits<T>::create_value(sign,
159+
FPBits<T>::create_value(Sign::POS,
160160
static_cast<output_bits_t>(
161161
FPBits<T>::EXP_BIAS + scale_up_exponent),
162162
IMPLICIT_MASK)
163163
.get_val();
164164
T scale_down_factor =
165-
FPBits<T>::create_value(sign,
165+
FPBits<T>::create_value(Sign::POS,
166166
static_cast<output_bits_t>(
167167
FPBits<T>::EXP_BIAS - scale_up_exponent),
168168
IMPLICIT_MASK)

0 commit comments

Comments
 (0)