2 * Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
3 * Copyright (C) 1999-2001 Internet Software Consortium.
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
9 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 * PERFORMANCE OF THIS SOFTWARE.
18 /* $Id: int.h,v 1.13 2007/06/19 23:47:20 tbox Exp $ */
23 #define _INTEGRAL_MAX_BITS 64
26 typedef __int8 isc_int8_t;
27 typedef unsigned __int8 isc_uint8_t;
28 typedef __int16 isc_int16_t;
29 typedef unsigned __int16 isc_uint16_t;
30 typedef __int32 isc_int32_t;
31 typedef unsigned __int32 isc_uint32_t;
32 typedef __int64 isc_int64_t;
33 typedef unsigned __int64 isc_uint64_t;
35 #define ISC_INT8_MIN -128
36 #define ISC_INT8_MAX 127
37 #define ISC_UINT8_MAX 255
39 #define ISC_INT16_MIN -32768
40 #define ISC_INT16_MAX 32767
41 #define ISC_UINT16_MAX 65535
44 * Note that "int" is 32 bits on all currently supported Unix-like operating
45 * systems, but "long" can be either 32 bits or 64 bits, thus the 32 bit
46 * constants are not qualified with "L".
48 #define ISC_INT32_MIN _I32_MIN
49 #define ISC_INT32_MAX _I32_MAX
50 #define ISC_UINT32_MAX _UI32_MAX
52 #define ISC_INT64_MIN _I64_MIN
53 #define ISC_INT64_MAX _I64_MAX
54 #define ISC_UINT64_MAX _UI64_MAX
56 #endif /* ISC_INT_H */