@@ -70,7 +70,7 @@ using namespace common_constants_internal;
7070// Return expm1(dx) / x ~ 1 + dx / 2 + dx^2 / 6 + dx^3 / 24.
7171// For |dx| < 2^-13 + 2^-30:
7272// | output - expm1(dx) / dx | < 2^-51.
73- LIBC_INLINE static constexpr double poly_approx_d (double dx) {
73+ LIBC_INLINE static double poly_approx_d (double dx) {
7474 // dx^2
7575 double dx2 = dx * dx;
7676 // c0 = 1 + dx / 2
@@ -144,8 +144,8 @@ std::ostream &operator<<(std::ostream &OS, const DoubleDouble &r) {
144144// Compute exp(x) - 1 using 128-bit precision.
145145// TODO(lntue): investigate triple-double precision implementation for this
146146// step.
147- [[maybe_unused]] LIBC_INLINE static constexpr Float128
148- expm1_f128 ( double x, double kd, int idx1, int idx2) {
147+ [[maybe_unused]] LIBC_INLINE static Float128 expm1_f128 ( double x, double kd,
148+ int idx1, int idx2) {
149149 // Recalculate dx:
150150
151151 double t1 = fputil::multiply_add (kd, MLOG_2_EXP2_M12_HI, x); // exact
@@ -196,9 +196,9 @@ expm1_f128(double x, double kd, int idx1, int idx2) {
196196}
197197
198198// Compute exp(x) - 1 with double-double precision.
199- LIBC_INLINE static constexpr DoubleDouble
200- exp_double_double ( double x, double kd, const DoubleDouble &exp_mid,
201- const DoubleDouble &hi_part) {
199+ LIBC_INLINE static DoubleDouble exp_double_double ( double x, double kd,
200+ const DoubleDouble &exp_mid,
201+ const DoubleDouble &hi_part) {
202202 // Recalculate dx:
203203 // dx = x - k * 2^-12 * log(2)
204204 double t1 = fputil::multiply_add (kd, MLOG_2_EXP2_M12_HI, x); // exact
0 commit comments