mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-17 03:49:46 +08:00
929be8005c
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>
19 lines
189 B
C
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);
|
|
}
|
|
|