summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/math/isinf.c
blob: 6482c9921b895f3fec842516773741f588906edd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 };