4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-17 03:49:46 +08:00
Yaakov Selkowitz 929be8005c cygwin/math: make isinf functions signed
glibc returns -1 for negative infinity:

http://man7.org/linux/man-pages/man3/isinfl.3.html
https://sourceware.org/bugzilla/show_bug.cgi?id=15367

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2016-04-04 10:25:34 -05:00

19 lines
189 B
C

int
isinf (double x)
{
return __builtin_isinf_sign (x);
}
int
isinff (float x)
{
return __builtin_isinf_sign (x);
}
int
isinfl (long double x)
{
return __builtin_isinf_sign (x);
}