]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Use M_LIT in place of M_MLIT for literals
authorJoseph Myers <josmyers@redhat.com>
Thu, 5 Dec 2024 10:12:09 +0000 (10:12 +0000)
committerJoseph Myers <josmyers@redhat.com>
Thu, 5 Dec 2024 10:12:09 +0000 (10:12 +0000)
This should fix the reported issue building cospi and sinpi with GCC 6.

Tested for x86_64 (not with GCC 6).

math/s_cospi_template.c
math/s_sinpi_template.c

index 2eb907973dd40f25436782db1849eb6fd1bcc522..d20af650ab056c23b2ca429a8fabd14dad6b9244 100644 (file)
@@ -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))
index 457e4373eeac9f928babe161fb73f76200eaf3dc..fe3f6762edf8243b0fdd58fe9656a875fb73c426 100644 (file)
@@ -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);