xref: /csrg-svn/sys/hp300/include/limits.h (revision 36797)
1*36797Sbostic /*
2*36797Sbostic  * Copyright (c) 1988 The Regents of the University of California.
3*36797Sbostic  * All rights reserved.
4*36797Sbostic  *
5*36797Sbostic  * Redistribution and use in source and binary forms are permitted
6*36797Sbostic  * provided that the above copyright notice and this paragraph are
7*36797Sbostic  * duplicated in all such forms and that any documentation,
8*36797Sbostic  * advertising materials, and other materials related to such
9*36797Sbostic  * distribution and use acknowledge that the software was developed
10*36797Sbostic  * by the University of California, Berkeley.  The name of the
11*36797Sbostic  * University may not be used to endorse or promote products derived
12*36797Sbostic  * from this software without specific prior written permission.
13*36797Sbostic  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14*36797Sbostic  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15*36797Sbostic  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16*36797Sbostic  *
17*36797Sbostic  *	@(#)limits.h	7.1 (Berkeley) 02/15/89
18*36797Sbostic  */
19*36797Sbostic 
20*36797Sbostic #define	CHAR_BIT	8		/* number of bits in a char */
21*36797Sbostic #define	CLK_TCK		60		/* ticks per second */
22*36797Sbostic #define	MB_LEN_MAX	1		/* no multibyte characters */
23*36797Sbostic 
24*36797Sbostic #define	SCHAR_MIN	0x80		/* max value for a signed char */
25*36797Sbostic #define	SCHAR_MAX	0x7f		/* min value for a signed char */
26*36797Sbostic 
27*36797Sbostic #define	UCHAR_MAX	0xff		/* max value for an unsigned char */
28*36797Sbostic #define	CHAR_MAX	0x7f		/* max value for a char */
29*36797Sbostic #define	CHAR_MIN	0x80		/* min value for a char */
30*36797Sbostic 
31*36797Sbostic #define	USHRT_MAX	0xffff		/* max value for an unsigned short */
32*36797Sbostic #define	SHRT_MAX	0x7fff		/* max value for a short */
33*36797Sbostic #define	SHRT_MIN	0x8000		/* min value for a short */
34*36797Sbostic 
35*36797Sbostic #define	UINT_MAX	0xffffffff	/* max value for an unsigned int */
36*36797Sbostic #define	INT_MAX		0x7fffffff	/* max value for an int */
37*36797Sbostic #define	INT_MIN		0x80000000	/* min value for an int */
38*36797Sbostic 
39*36797Sbostic #define	ULONG_MAX	0xffffffff	/* max value for an unsigned long */
40*36797Sbostic #define	LONG_MAX	0x7fffffff	/* max value for a long */
41*36797Sbostic #define	LONG_MIN	0x80000000	/* min value for a long */
42