Skip to content

Commit 79a8809

Browse files
committed
[libc][math] fix-exp
1 parent 1f97c94 commit 79a8809

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libc/src/__support/FPUtil/PolyEval.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ LIBC_INLINE cpp::enable_if_t<(sizeof(T) <= sizeof(void *)), T> polyeval(T,
3737
}
3838

3939
template <typename T, typename... Ts>
40-
LIBC_INLINE cpp::enable_if_t<(sizeof(T) > sizeof(void *)), T>
40+
LIBC_INLINE static constexpr cpp::enable_if_t<(sizeof(T) > sizeof(void *)), T>
4141
polyeval(const T &x, const T &a0, const Ts &...a) {
4242
return multiply_add(x, polyeval(x, a...), a0);
4343
}

libc/src/__support/FPUtil/multiply_add.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ LIBC_INLINE float multiply_add(float x, float y, float z) {
5757
#endif // LIBC_TARGET_CPU_HAS_FMA_FLOAT
5858

5959
#ifdef LIBC_TARGET_CPU_HAS_FMA_DOUBLE
60-
LIBC_INLINE double multiply_add(double x, double y, double z) {
60+
LIBC_INLINE static constexpr double multiply_add(double x, double y, double z) {
6161
#if __has_builtin(__builtin_elementwise_fma)
6262
return __builtin_elementwise_fma(x, y, z);
6363
#else

0 commit comments

Comments
 (0)