OSDN Git Service

Merge branch 'master' of git://github.com/monaka/binutils
[pf3gnuchains/pf3gnuchains3x.git] / newlib / libm / common / s_infconst.c
1 /* Infinity as a constant value.   This is used for HUGE_VAL.
2  * Added by Cygnus Support.
3  */
4
5 #include <float.h>
6 #include <math.h>
7
8 /* These should never actually be used any longer, as their use in math.h was
9  * removed, but they are kept here in case a user was pointing to them.
10  * FIXME:  deprecate these identifiers and then delete them.  */
11  
12 /* Float version of infinity.  */
13 const union __fmath __infinityf[1] = { { FLT_MAX+FLT_MAX } };
14
15 /* Double version of infinity.  */
16 const union __dmath __infinity[1] = { { DBL_MAX+DBL_MAX } };
17
18 /* Long double version of infinity.  */
19 #if defined(_HAVE_LONG_DOUBLE)
20 const union __ldmath __infinityld[1] = { { LDBL_MAX+LDBL_MAX } };
21 #endif