1 /* Copyright (C) 1991, 1997 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, write to the Free
16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19 #ifndef __need_HUGE_VAL
21 /* Floating-point constants for Vaxen. */
25 #define FLT_ROUNDS _FLT_ROUNDS_TONEAREST
27 #define FLT_MANT_DIG 23
28 #define DBL_MANT_DIG 55
29 #define LDBL_MANT_DIG 55
35 #define FLT_MIN_EXP (-128)
36 #define DBL_MIN_EXP (-128)
37 #define LDBL_MIN_EXP (-128)
39 #define FLT_MIN_10_EXP (-38)
40 #define DBL_MIN_10_EXP (-38)
41 #define LDBL_MIN_10_EXP (-38)
43 #define FLT_MAX_EXP 127
44 #define DBL_MAX_EXP 127
45 #define LDBL_MAX_EXP 127
47 #define FLT_MAX_10_EXP 38
48 #define DBL_MAX_10_EXP 38
49 #define LDBL_MAX_10_EXP 38
51 #define FLT_MAX 1.7014116e38
52 #define DBL_MAX 1.70141182460469227e38
53 #define LDBL_MAX DBL_MAX
55 #define FLT_EPSILON 2.384186e-7
56 #define DBL_EPSILON 5.55111512312578270e-17
57 #define LDBL_EPSILON DBL_EPSILON
59 #define FLT_MIN 0.2938736e-38
60 #define DBL_MIN 0.29387358770557187e-38
61 #define LDBL_MIN DBL_MIN
63 #else /* Need HUGE_VAL. */
65 /* Used by <stdlib.h> and <math.h> functions for overflow. */
66 #define HUGE_VAL 1.70141182460469227e38
68 #endif /* Don't need HUGE_VAL. */