@@ -478,13 +478,13 @@ class cpp_double_fp_backend
478
478
479
479
const float_type xlo { data.second };
480
480
481
- data = two_sum (data.first , v.data .first );
481
+ data = arithmetic:: two_sum (data.first , v.data .first );
482
482
483
- const rep_type thi_tlo { two_sum (xlo, v.data .second ) };
483
+ const rep_type thi_tlo { arithmetic:: two_sum (xlo, v.data .second ) };
484
484
485
- data = two_hilo_sum (data.first , data.second + thi_tlo.first );
485
+ data = arithmetic:: two_hilo_sum (data.first , data.second + thi_tlo.first );
486
486
487
- data = two_hilo_sum (data.first , thi_tlo.second + data.second );
487
+ data = arithmetic:: two_hilo_sum (data.first , thi_tlo.second + data.second );
488
488
489
489
return *this ;
490
490
}
@@ -539,13 +539,13 @@ class cpp_double_fp_backend
539
539
540
540
const float_type xlo { data.second };
541
541
542
- data = two_diff (data.first , v.data .first );
542
+ data = arithmetic:: two_diff (data.first , v.data .first );
543
543
544
- const rep_type thi_tlo { two_diff (xlo, v.data .second ) };
544
+ const rep_type thi_tlo { arithmetic:: two_diff (xlo, v.data .second ) };
545
545
546
- data = two_hilo_sum (data.first , data.second + thi_tlo.first );
546
+ data = arithmetic:: two_hilo_sum (data.first , data.second + thi_tlo.first );
547
547
548
- data = two_hilo_sum (data.first , thi_tlo.second + data.second );
548
+ data = arithmetic:: two_hilo_sum (data.first , thi_tlo.second + data.second );
549
549
550
550
return *this ;
551
551
}
@@ -975,7 +975,7 @@ class cpp_double_fp_backend
975
975
return
976
976
cpp_double_fp_backend
977
977
(
978
- arithmetic::fast_sum
978
+ arithmetic::two_hilo_sum
979
979
(
980
980
static_cast <float_type>
981
981
(
@@ -1065,31 +1065,6 @@ class cpp_double_fp_backend
1065
1065
1066
1066
bool rd_string (const char * pstr);
1067
1067
1068
- static constexpr rep_type two_sum (const float_type a, const float_type b)
1069
- {
1070
- const float_type hi { a + b };
1071
- const float_type a1 { hi - b };
1072
- const float_type b1 { hi - a1 };
1073
-
1074
- return { hi, float_type { (a - a1) + (b - b1) } };
1075
- }
1076
-
1077
- static constexpr rep_type two_diff (const float_type a, const float_type b)
1078
- {
1079
- const float_type hi { a - b };
1080
- const float_type a1 { hi + b };
1081
- const float_type b1 { hi - a1 };
1082
-
1083
- return { hi, float_type { (a - a1) - (b + b1) } };
1084
- }
1085
-
1086
- static constexpr rep_type two_hilo_sum (const float_type a, const float_type b)
1087
- {
1088
- const float_type hi { a + b };
1089
-
1090
- return { hi, float_type { b - (hi - a) } };
1091
- }
1092
-
1093
1068
template <typename OtherFloatingPointType,
1094
1069
typename ::std::enable_if<(cpp_df_qf_detail::is_floating_point_or_float128<OtherFloatingPointType>::value && ((cpp_df_qf_detail::ccmath::numeric_limits<OtherFloatingPointType>::digits10 * 2 ) < 16 ))>::type const *>
1095
1070
friend constexpr void eval_exp (cpp_double_fp_backend<OtherFloatingPointType>& result, const cpp_double_fp_backend<OtherFloatingPointType>& x);
0 commit comments