Skip to content

Commit 38fa11f

Browse files
authored
[libc] Remove constexpr from asin_eval() (#151528)
fputil::multiply_add is conditionally constexpr, on some architectures, it selects the non-constexpr version, resulting in a compile error.
1 parent fc12fc6 commit 38fa11f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/__support/math/asin_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static constexpr double ASIN_COEFFS[12] = {
4545
0x1.2b5993bda1d9bp-6, -0x1.806aff270bf25p-7, 0x1.02614e5ed3936p-5,
4646
};
4747

48-
LIBC_INLINE static constexpr double asin_eval(double u) {
48+
LIBC_INLINE double asin_eval(double u) {
4949
double u2 = u * u;
5050
double c0 = fputil::multiply_add(u, ASIN_COEFFS[1], ASIN_COEFFS[0]);
5151
double c1 = fputil::multiply_add(u, ASIN_COEFFS[3], ASIN_COEFFS[2]);

0 commit comments

Comments
 (0)