xref: /csrg-svn/sys/hp300/include/limits.h (revision 44541)
136797Sbostic /*
236797Sbostic  * Copyright (c) 1988 The Regents of the University of California.
336797Sbostic  * All rights reserved.
436797Sbostic  *
5*44541Sbostic  * %sccs.include.redist.c%
636797Sbostic  *
7*44541Sbostic  *	@(#)limits.h	7.2 (Berkeley) 06/28/90
836797Sbostic  */
936797Sbostic 
1036797Sbostic #define	CHAR_BIT	8		/* number of bits in a char */
1136797Sbostic #define	CLK_TCK		60		/* ticks per second */
1236797Sbostic #define	MB_LEN_MAX	1		/* no multibyte characters */
1336797Sbostic 
1436797Sbostic #define	SCHAR_MIN	0x80		/* max value for a signed char */
1536797Sbostic #define	SCHAR_MAX	0x7f		/* min value for a signed char */
1636797Sbostic 
1736797Sbostic #define	UCHAR_MAX	0xff		/* max value for an unsigned char */
1836797Sbostic #define	CHAR_MAX	0x7f		/* max value for a char */
1936797Sbostic #define	CHAR_MIN	0x80		/* min value for a char */
2036797Sbostic 
2136797Sbostic #define	USHRT_MAX	0xffff		/* max value for an unsigned short */
2236797Sbostic #define	SHRT_MAX	0x7fff		/* max value for a short */
2336797Sbostic #define	SHRT_MIN	0x8000		/* min value for a short */
2436797Sbostic 
2536797Sbostic #define	UINT_MAX	0xffffffff	/* max value for an unsigned int */
2636797Sbostic #define	INT_MAX		0x7fffffff	/* max value for an int */
2736797Sbostic #define	INT_MIN		0x80000000	/* min value for an int */
2836797Sbostic 
2936797Sbostic #define	ULONG_MAX	0xffffffff	/* max value for an unsigned long */
3036797Sbostic #define	LONG_MAX	0x7fffffff	/* max value for a long */
3136797Sbostic #define	LONG_MIN	0x80000000	/* min value for a long */
32