Hack to avoid the problem of tanf(PI/4) overflowing in GLIBC.

This commit is contained in:
jjgarcia 2008-08-03 08:36:51 +00:00
parent f83ba9a73d
commit a072c1dc88

View file

@ -597,6 +597,18 @@ cl_cos(cl_object x)
@(return output)
}
/*
* As of 2006-10-13 I found this bug in GLIBC's tanf, which overflows
* when the argument is pi/4. It is 2008 and this has not yet been
* solved.
*/
#if defined(__amd64__) && defined(__GLIBC_)
# ifdef tanf
# undef tanf
# endif
# define tanf(x) (float)tan(x)
#endif
cl_object
cl_tan(cl_object x)
{