4 * Copyright (C) 1999-2001 Internet Software Consortium.
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
10 * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
11 * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
12 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
13 * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
14 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
15 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
16 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
17 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20 /* Id: int.h,v 1.11 2001/01/09 21:58:39 bwelling Exp */
25 typedef char isc_int8_t
;
26 typedef unsigned char isc_uint8_t
;
27 typedef short isc_int16_t
;
28 typedef unsigned short isc_uint16_t
;
29 typedef int isc_int32_t
;
30 typedef unsigned int isc_uint32_t
;
31 typedef long long isc_int64_t
;
32 typedef unsigned long long isc_uint64_t
;
34 #define ISC_INT8_MIN -128
35 #define ISC_INT8_MAX 127
36 #define ISC_UINT8_MAX 255
38 #define ISC_INT16_MIN -32768
39 #define ISC_INT16_MAX 32767
40 #define ISC_UINT16_MAX 65535
43 * Note that "int" is 32 bits on all currently supported Unix-like operating
44 * systems, but "long" can be either 32 bits or 64 bits, thus the 32 bit
45 * constants are not qualified with "L".
47 #define ISC_INT32_MIN -2147483648
48 #define ISC_INT32_MAX 2147483647
49 #define ISC_UINT32_MAX 4294967295U
51 #define ISC_INT64_MIN -9223372036854775808LL
52 #define ISC_INT64_MAX 9223372036854775807LL
53 #define ISC_UINT64_MAX 18446744073709551615ULL
55 #endif /* ISC_INT_H */