Skip to content

Commit b465276

Browse files
authored
[libc] Remove constexpr from math::exp10_range_reduction and math::exp. (#150653)
1 parent 1d0aa5f commit b465276

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

libc/src/__support/math/exp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ static double set_exceptional(double x) {
234234

235235
namespace math {
236236

237-
static constexpr double exp(double x) {
237+
LIBC_INLINE static double exp(double x) {
238238
using FPBits = typename fputil::FPBits<double>;
239239
FPBits xbits(x);
240240

libc/src/__support/math/exp10f16_utils.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919

2020
namespace LIBC_NAMESPACE_DECL {
2121

22-
LIBC_INLINE static constexpr ExpRangeReduction
23-
exp10_range_reduction(float16 x) {
22+
LIBC_INLINE static ExpRangeReduction exp10_range_reduction(float16 x) {
2423
// For -8 < x < 5, to compute 10^x, we perform the following range reduction:
2524
// find hi, mid, lo, such that:
2625
// x = (hi + mid) * log2(10) + lo, in which

0 commit comments

Comments
 (0)