File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -392,16 +392,6 @@ class MPFRNumber {
392
392
// These functions are useful for debugging.
393
393
template <typename T> T as () const ;
394
394
395
- template <> float as<float >() const {
396
- return mpfr_get_flt (value, mpfr_rounding);
397
- }
398
- template <> double as<double >() const {
399
- return mpfr_get_d (value, mpfr_rounding);
400
- }
401
- template <> long double as<long double >() const {
402
- return mpfr_get_ld (value, mpfr_rounding);
403
- }
404
-
405
395
void dump (const char *msg) const { mpfr_printf (" %s%.128Rf\n " , msg, value); }
406
396
407
397
// Return the ULP (units-in-the-last-place) difference between the
@@ -488,6 +478,18 @@ class MPFRNumber {
488
478
}
489
479
};
490
480
481
+ template <> float MPFRNumber::as<float >() const {
482
+ return mpfr_get_flt (value, mpfr_rounding);
483
+ }
484
+
485
+ template <> double MPFRNumber::as<double >() const {
486
+ return mpfr_get_d (value, mpfr_rounding);
487
+ }
488
+
489
+ template <> long double MPFRNumber::as<long double >() const {
490
+ return mpfr_get_ld (value, mpfr_rounding);
491
+ }
492
+
491
493
namespace internal {
492
494
493
495
template <typename InputType>
You can’t perform that action at this time.
0 commit comments