1*b5677b36Schristos /*	$NetBSD: bitypes.h,v 1.1.1.1 2009/04/12 15:33:54 christos Exp $	*/
2*b5677b36Schristos 
3*b5677b36Schristos /*
4*b5677b36Schristos  * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
5*b5677b36Schristos  * Copyright (c) 1996,1999 by Internet Software Consortium.
6*b5677b36Schristos  *
7*b5677b36Schristos  * Permission to use, copy, modify, and distribute this software for any
8*b5677b36Schristos  * purpose with or without fee is hereby granted, provided that the above
9*b5677b36Schristos  * copyright notice and this permission notice appear in all copies.
10*b5677b36Schristos  *
11*b5677b36Schristos  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
12*b5677b36Schristos  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13*b5677b36Schristos  * MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR
14*b5677b36Schristos  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15*b5677b36Schristos  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16*b5677b36Schristos  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
17*b5677b36Schristos  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18*b5677b36Schristos  */
19*b5677b36Schristos 
20*b5677b36Schristos #ifndef __BIT_TYPES_DEFINED__
21*b5677b36Schristos #define __BIT_TYPES_DEFINED__
22*b5677b36Schristos 
23*b5677b36Schristos 	/*
24*b5677b36Schristos 	 * Basic integral types.  Omit the typedef if
25*b5677b36Schristos 	 * not possible for a machine/compiler combination.
26*b5677b36Schristos 	 */
27*b5677b36Schristos 	typedef /*signed*/ char            int8_t;
28*b5677b36Schristos 	typedef unsigned char            u_int8_t;
29*b5677b36Schristos 	typedef short                     int16_t;
30*b5677b36Schristos 	typedef unsigned short          u_int16_t;
31*b5677b36Schristos 	typedef int                       int32_t;
32*b5677b36Schristos 	typedef unsigned int            u_int32_t;
33*b5677b36Schristos 
34*b5677b36Schristos # if 0	/* don't fight with these unless you need them */
35*b5677b36Schristos 	typedef long long                 int64_t;
36*b5677b36Schristos 	typedef unsigned long long      u_int64_t;
37*b5677b36Schristos # endif
38*b5677b36Schristos 
39*b5677b36Schristos #endif	/* __BIT_TYPES_DEFINED__ */
40