2 * Copyright Droids Corporation, Microb Technology, Eirbot (2005)
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 * Revision : $Id: types.h,v 1.1.2.1 2007-05-23 17:18:09 zer0 Exp $
22 #ifndef _AVERSIVE_TYPES_H_
23 #define _AVERSIVE_TYPES_H_
29 #define U16_MIN 0x0000
30 #define U16_MAX 0xFFFF
31 #define U32_MIN 0x00000000
32 #define U32_MAX 0xFFFFFFFF
33 #define U64_MIN 0x0000000000000000
34 #define U64_MAX 0xFFFFFFFFFFFFFFFF
37 #define S16_MIN 0x8000
38 #define S16_MAX 0x7FFF
39 #define S32_MIN 0x80000000
40 #define S32_MAX 0x7FFFFFFF
41 #define S64_MIN 0x8000000000000000
42 #define S64_MAX 0x7FFFFFFFFFFFFFFF
44 /* you should use uintXX_t instead of uXX which is more standard */
46 /* explicit types u = unsigned, s = signed */
57 #endif /* _AVERSIVE_TYPES_H_ */