diff --git a/libc/utils/MPFRWrapper/MPFRUtils.cpp b/libc/utils/MPFRWrapper/MPFRUtils.cpp --- a/libc/utils/MPFRWrapper/MPFRUtils.cpp +++ b/libc/utils/MPFRWrapper/MPFRUtils.cpp @@ -392,16 +392,6 @@ // These functions are useful for debugging. template T as() const; - template <> float as() const { - return mpfr_get_flt(value, mpfr_rounding); - } - template <> double as() const { - return mpfr_get_d(value, mpfr_rounding); - } - template <> long double as() const { - return mpfr_get_ld(value, mpfr_rounding); - } - void dump(const char *msg) const { mpfr_printf("%s%.128Rf\n", msg, value); } // Return the ULP (units-in-the-last-place) difference between the @@ -488,6 +478,18 @@ } }; +template <> float MPFRNumber::as() const { + return mpfr_get_flt(value, mpfr_rounding); +} + +template <> double MPFRNumber::as() const { + return mpfr_get_d(value, mpfr_rounding); +} + +template <> long double MPFRNumber::as() const { + return mpfr_get_ld(value, mpfr_rounding); +} + namespace internal { template