Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion libc/src/__support/math/cbrt.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ LIBC_INLINE static constexpr double get_error(const DoubleDouble &x_3,

LIBC_INLINE static constexpr double cbrt(double x) {
using DoubleDouble = fputil::DoubleDouble;
using Float128 = fputil::DyadicFloat<128>;
using namespace cbrt_internal;
using FPBits = fputil::FPBits<double>;

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

using Float128 = fputil::DyadicFloat<128>;

// TODO: Investigate removing float128 and just list exceptional cases.
// Apply another Newton iteration with ~126-bit accuracy.
Float128 x2_f128 = fputil::quick_add(Float128(x2.hi), Float128(x2.lo));
Expand Down
Loading