(M68*:*:R3V[567]*:*): Use uppercase 'M'.
[glibc.git] / values.h
blob0b2b661abde5768f4696c27de86469c1c82e986b
1 /* Old compatibility names for <limits.h> and <float.h> constants.
2 Copyright (C) 1995, 1996 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 not,
17 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. */
20 /* This interface is obsolete. New programs should use
21 <limits.h> and/or <float.h> instead of <values.h>. */
23 #ifndef _VALUES_H
24 #define _VALUES_H 1
26 #include <limits.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 SHRT_MIN
39 #define MININT INT_MIN
40 #define MINLONG LONG_MIN
42 #define MAXSHORT SHRT_MAX
43 #define MAXINT INT_MAX
44 #define MAXLONG LONG_MAX
46 #define HIBITS MINSHORT
47 #define HIBITL MINLONG
50 #include <float.h>
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
62 #endif /* values.h */