diff options
author | Joseph Myers <josmyers@redhat.com> | 2024-12-05 10:12:09 +0000 |
---|---|---|
committer | Joseph Myers <josmyers@redhat.com> | 2024-12-05 10:12:09 +0000 |
commit | 30ad01a3cf7eb0c04a764363d7c5ecf403519b1d (patch) | |
tree | e7e01d402cc0c4c570e66446461a4ee032ba328b /math | |
parent | 9b5f2eb9fc5d3cf4b984f6002e69aac43296e922 (diff) | |
download | glibc-30ad01a3cf7eb0c04a764363d7c5ecf403519b1d.zip glibc-30ad01a3cf7eb0c04a764363d7c5ecf403519b1d.tar.gz glibc-30ad01a3cf7eb0c04a764363d7c5ecf403519b1d.tar.bz2 |
Use M_LIT in place of M_MLIT for literals
This should fix the reported issue building cospi and sinpi with GCC 6.
Tested for x86_64 (not with GCC 6).
Diffstat (limited to 'math')
-rw-r--r-- | math/s_cospi_template.c | 2 | ||||
-rw-r--r-- | math/s_sinpi_template.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/math/s_cospi_template.c b/math/s_cospi_template.c index 2eb9079..d20af65 100644 --- a/math/s_cospi_template.c +++ b/math/s_cospi_template.c @@ -26,7 +26,7 @@ M_DECL_FUNC (__cospi) (FLOAT x) return M_LIT (1.0); if (__glibc_unlikely (isinf (x))) __set_errno (EDOM); - x = M_FABS (x - M_MLIT (2.0) * M_SUF (round) (M_LIT (0.5) * x)); + x = M_FABS (x - M_LIT (2.0) * M_SUF (round) (M_LIT (0.5) * x)); if (islessequal (x, M_LIT (0.25))) return M_SUF (__cos) (M_MLIT (M_PI) * x); else if (x == M_LIT (0.5)) diff --git a/math/s_sinpi_template.c b/math/s_sinpi_template.c index 457e437..fe3f676 100644 --- a/math/s_sinpi_template.c +++ b/math/s_sinpi_template.c @@ -31,7 +31,7 @@ M_DECL_FUNC (__sinpi) (FLOAT x) } if (__glibc_unlikely (isinf (x))) __set_errno (EDOM); - FLOAT y = x - M_MLIT (2.0) * M_SUF (round) (M_LIT (0.5) * x); + FLOAT y = x - M_LIT (2.0) * M_SUF (round) (M_LIT (0.5) * x); FLOAT absy = M_FABS (y); if (absy == M_LIT (0.0) || absy == M_LIT (1.0)) return M_COPYSIGN (M_LIT (0.0), x); |