initial import
[glibc.git] / sysdeps / vax / fl.h
blob49e745697a86249621a458ef839726301e913026
1 /* Copyright (C) 1991 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 Library General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 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 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public
15 License along with the GNU C Library; see the file COPYING.LIB. If
16 not, write to the Free Software Foundation, Inc., 675 Mass Ave,
17 Cambridge, MA 02139, USA. */
19 #ifndef __need_HUGE_VAL
21 /* Floating-point constants for Vaxen. */
23 #define FLT_RADIX 2
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
31 #define FLT_DIG 6
32 #define DBL_DIG 16
33 #define LDBL_DIG 16
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. */