1 /* Old compatibility names for <limits.h> and <float.h> constants.
\r
2 Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
\r
3 This file is part of the GNU C Library.
\r
5 The GNU C Library is free software; you can redistribute it and/or
\r
6 modify it under the terms of the GNU Lesser General Public
\r
7 License as published by the Free Software Foundation; either
\r
8 version 2.1 of the License, or (at your option) any later version.
\r
10 The GNU C Library is distributed in the hope that it will be useful,
\r
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
\r
13 Lesser General Public License for more details.
\r
15 You should have received a copy of the GNU Lesser General Public
\r
16 License along with the GNU C Library; if not, write to the Free
\r
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
\r
20 /* This interface is obsolete. New programs should use
\r
21 <limits.h> and/or <float.h> instead of <values.h>. */
\r
26 //#include <features.h>
\r
30 #define _TYPEBITS(type) (sizeof (type) * CHAR_BIT)
\r
32 #define CHARBITS _TYPEBITS (char)
\r
33 #define SHORTBITS _TYPEBITS (short int)
\r
34 #define INTBITS _TYPEBITS (int)
\r
35 #define LONGBITS _TYPEBITS (long int)
\r
36 #define PTRBITS _TYPEBITS (char *)
\r
37 #define DOUBLEBITS _TYPEBITS (double)
\r
38 #define FLOATBITS _TYPEBITS (float)
\r
41 //#define MINSHORT SHRT_MIN
\r
45 #define MININT INT_MIN
\r
49 //#define MINLONG LONG_MIN
\r
53 //#define MAXSHORT SHRT_MAX
\r
56 #define MAXINT INT_MAX
\r
59 //#define MAXLONG LONG_MAX
\r
62 #define HIBITS MINSHORT
\r
63 #define HIBITL MINLONG
\r
68 #define MAXDOUBLE DBL_MAX
\r
69 #define MAXFLOAT FLT_MAX
\r
70 #define MINDOUBLE DBL_MIN
\r
71 #define MINFLOAT FLT_MIN
\r
72 #define DMINEXP DBL_MIN_EXP
\r
73 #define FMINEXP FLT_MIN_EXP
\r
74 #define DMAXEXP DBL_MAX_EXP
\r
75 #define FMAXEXP FLT_MAX_EXP
\r
79 /* Some systems define this name instead of CHAR_BIT or CHARBITS. */
\r
80 # define BITSPERBYTE CHAR_BIT
\r
83 #endif /* values.h */
\r