Skip to content

Commit bda0514

Browse files
authored
[libc] Remove constexpr from atan_eval and asin_eval. (llvm#85725)
Fix aarch64 and gcc full build bots: https://lab.llvm.org/buildbot/#/builders/223/builds/38235/steps/4/logs/stdio
1 parent a2527e0 commit bda0514

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/src/math/generic/inv_trigf_utils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ extern double ATAN_COEFFS[17][8];
2323

2424
// For |x| <= 1/32 and 1 <= i <= 16, return Q(x) such that:
2525
// Q(x) ~ (atan(x + i/16) - atan(i/16)) / x.
26-
LIBC_INLINE constexpr double atan_eval(double x, int i) {
26+
LIBC_INLINE double atan_eval(double x, int i) {
2727
double x2 = x * x;
2828

2929
double c0 = fputil::multiply_add(x, ATAN_COEFFS[i][2], ATAN_COEFFS[i][1]);
@@ -46,7 +46,7 @@ constexpr double ASIN_COEFFS[10] = {0x1.5555555540fa1p-3, 0x1.333333512edc2p-4,
4646
-0x1.df946fa875ddp-8, 0x1.02311ecf99c28p-5};
4747

4848
// Evaluate P(x^2) - 1, where P(x^2) ~ asin(x)/x
49-
LIBC_INLINE constexpr double asin_eval(double xsq) {
49+
LIBC_INLINE double asin_eval(double xsq) {
5050
double x4 = xsq * xsq;
5151
double r1 = fputil::polyeval(x4, ASIN_COEFFS[0], ASIN_COEFFS[2],
5252
ASIN_COEFFS[4], ASIN_COEFFS[6], ASIN_COEFFS[8]);

0 commit comments

Comments
 (0)