1 /* Old compatiblity names for <limits.h> and <float.h> constants.
2 Copyright (C) 1995 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public License as
7 published by the Free Software Foundation; either version 2 of the
8 License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public
16 License along with the GNU C Library; see the file COPYING.LIB. If
17 not, write to the Free Software Foundation, Inc., 675 Mass Ave,
18 Cambridge, MA 02139, USA. */
20 /* This interface is obsolete. New programs should use
21 <limits.h> and/or <float.h> instead of <values.h>. */
28 #define _TYPEBITS(type) (sizeof (type) * CHAR_BIT)
30 #define CHARBITS _TYPEBITS (char)
31 #define SHORTBITS _TYPEBITS (short int)
32 #define INTBITS _TYPEBITS (int)
33 #define LONGBITS _TYPEBITS (long)
34 #define PTRBITS _TYPEBITS (char *)
35 #define DOUBLEBITS _TYPEBITS (double)
36 #define FLOATBITS _TYPEBITS (float)
38 #define MINSHORT SHORT_MIN
39 #define MININT INT_MIN
40 #define MINLONG LONG_MIN
42 #define MAXSHORT SHORT_MAX
43 #define MAXINT INT_MAX
44 #define MAXLONG LONG_MAX
46 #define HIBITS MINSHORT
47 #define HIBITL MINLONG
52 #define MAXDOUBLE DBL_MAX
53 #define MAXFLOAT FLT_MAX
54 #define MINDOUBLE DBL_MIN
55 #define MINFLOAT FLT_MIN
56 #define DMINEXP DBL_MIN_EXP
57 #define FMINEXP FLT_MIN_EXP
58 #define DMAXEXP DBL_MAX_EXP
59 #define FMAXEXP FLT_MAX_EXP