Skip to content

Commit d7f00a9

Browse files
authored
[libc] fix build errors caused by cbrt. (#151879)
1 parent 003f6ad commit d7f00a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libc/src/__support/math/cbrt.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ LIBC_INLINE static constexpr double get_error(const DoubleDouble &x_3,
146146

147147
LIBC_INLINE static constexpr double cbrt(double x) {
148148
using DoubleDouble = fputil::DoubleDouble;
149-
using Float128 = fputil::DyadicFloat<128>;
150149
using namespace cbrt_internal;
151150
using FPBits = fputil::FPBits<double>;
152151

@@ -295,6 +294,8 @@ LIBC_INLINE static constexpr double cbrt(double x) {
295294
if (LIBC_LIKELY(r2_upper == r2_lower))
296295
return update_exponent(r2_upper);
297296

297+
using Float128 = fputil::DyadicFloat<128>;
298+
298299
// TODO: Investigate removing float128 and just list exceptional cases.
299300
// Apply another Newton iteration with ~126-bit accuracy.
300301
Float128 x2_f128 = fputil::quick_add(Float128(x2.hi), Float128(x2.lo));

0 commit comments

Comments
 (0)