This should fix the reported issue building cospi and sinpi with GCC 6.
Tested for x86_64 (not with GCC 6).
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))
}
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);