00001 /*! 00002 ************************************************************************************* 00003 * \file typedefs.h 00004 * 00005 * \brief 00006 * Common type definitions 00007 * Currently only supports Windows and Linux operating systems. 00008 * Need to add support for other "older systems such as VAX, DECC, Unix Alpha etc 00009 * 00010 * \author 00011 * Main contributors (see contributors.h for copyright, address and affiliation details) 00012 * - Alexis Michael Tourapis <alexismt@ieee.org> 00013 ************************************************************************************* 00014 */ 00015 #ifndef _TYPEDEFS_H_ 00016 #define _TYPEDEFS_H_ 00017 00018 #include "win32.h" 00019 00020 typedef unsigned char byte; //!< byte type definition 00021 typedef unsigned char uint8; //!< type definition for unsigned char (same as byte, 8 bits) 00022 typedef unsigned short uint16; //!< type definition for unsigned short (16 bits) 00023 typedef unsigned int uint32; //!< type definition for unsigned int (32 bits) 00024 00025 typedef char int8; 00026 typedef short int16; 00027 typedef int int32; 00028 00029 /* 00030 #define MAXUINT8 0xff 00031 #define MAXUINT16 0xffff 00032 #define MAXUINT32 0xffffffff 00033 #define MAXUINT64 0xffffffffffffffff 00034 00035 #define MAXINT8 0x7f 00036 #define MININT8 (-MAXINT8) 00037 #define MAXINT16 0x7fff 00038 #define MININT16 (-MAXINT16) 00039 #define MAXINT32 0x7fffffff 00040 #define MININT32 (-MAXINT32) 00041 #define MAXINT64 0x7fffffffffffffff 00042 #define MININT64 (-MAXINT64) 00043 */ 00044 00045 #endif 00046