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