1118e757roberto/*
2d54cfbdroberto * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
3118e757roberto * Copyright (C) 1999-2001  Internet Software Consortium.
4118e757roberto *
5d54cfbdroberto * Permission to use, copy, modify, and/or distribute this software for any
6118e757roberto * purpose with or without fee is hereby granted, provided that the above
7118e757roberto * copyright notice and this permission notice appear in all copies.
8118e757roberto *
9d54cfbdroberto * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10d54cfbdroberto * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11d54cfbdroberto * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12d54cfbdroberto * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13d54cfbdroberto * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14d54cfbdroberto * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15d54cfbdroberto * PERFORMANCE OF THIS SOFTWARE.
16118e757roberto */
17118e757roberto
18d54cfbdroberto/* $Id: int.h,v 1.16 2007/06/19 23:47:19 tbox Exp $ */
19118e757roberto
20118e757roberto#ifndef ISC_INT_H
21118e757roberto#define ISC_INT_H 1
22118e757roberto
23d54cfbdroberto/*! \file */
24d54cfbdroberto
25118e757robertotypedef char				isc_int8_t;
26118e757robertotypedef unsigned char			isc_uint8_t;
27118e757robertotypedef short				isc_int16_t;
28118e757robertotypedef unsigned short			isc_uint16_t;
29118e757robertotypedef int				isc_int32_t;
30118e757robertotypedef unsigned int			isc_uint32_t;
31118e757robertotypedef long long			isc_int64_t;
32118e757robertotypedef unsigned long long		isc_uint64_t;
33118e757roberto
34118e757roberto#define ISC_INT8_MIN	-128
35118e757roberto#define ISC_INT8_MAX	127
36118e757roberto#define ISC_UINT8_MAX	255
37118e757roberto
38118e757roberto#define ISC_INT16_MIN	-32768
39118e757roberto#define ISC_INT16_MAX	32767
40118e757roberto#define ISC_UINT16_MAX	65535
41118e757roberto
42d54cfbdroberto/*%
43118e757roberto * Note that "int" is 32 bits on all currently supported Unix-like operating
44118e757roberto * systems, but "long" can be either 32 bits or 64 bits, thus the 32 bit
45118e757roberto * constants are not qualified with "L".
46118e757roberto */
47118e757roberto#define ISC_INT32_MIN	-2147483648
48118e757roberto#define ISC_INT32_MAX	2147483647
49118e757roberto#define ISC_UINT32_MAX	4294967295U
50118e757roberto
51118e757roberto#define ISC_INT64_MIN	-9223372036854775808LL
52118e757roberto#define ISC_INT64_MAX	9223372036854775807LL
53118e757roberto#define ISC_UINT64_MAX	18446744073709551615ULL
54118e757roberto
55118e757roberto#endif /* ISC_INT_H */
56