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>
This commit is contained in:
parent
b3acb347c4
commit
929be8005c
@ -1,18 +1,18 @@
|
|||||||
int
|
int
|
||||||
isinf (double x)
|
isinf (double x)
|
||||||
{
|
{
|
||||||
return __builtin_isinf (x);
|
return __builtin_isinf_sign (x);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
isinff (float x)
|
isinff (float x)
|
||||||
{
|
{
|
||||||
return __builtin_isinf (x);
|
return __builtin_isinf_sign (x);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
isinfl (long double x)
|
isinfl (long double x)
|
||||||
{
|
{
|
||||||
return __builtin_isinf (x);
|
return __builtin_isinf_sign (x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user