Projet_SETI_RISC-V/riscv-gnu-toolchain/newlib/winsup/cygwin/math/isinf.c
2023-03-06 14:48:14 +01:00

23 lines
447 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);
}
/* Infinity as a constant value. Should never actually be used any longer,
but has been exported by Cygwin for ages so we keep it here for (probably
unnecessary) backward compat. */
#include <float.h>
const double __infinity[1] = { DBL_MAX+DBL_MAX };