Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00034 #ifndef _SIZED_TYPES_H_
00035 #define _SIZED_TYPES_H_
00036
00037 #include <limits.h>
00038
00039
00040
00041
00042 #if UCHAR_MAX == 0xff
00043
00044 typedef unsigned char uint8;
00045 typedef signed char int8;
00046
00047 #else
00048 #error This machine has no 8-bit type; report compiler, and the contents of your limits.h to the persons in the AUTHORS file
00049 #endif
00050
00051
00052 #if UINT_MAX == 0xffff
00053
00054 typedef unsigned int uint16;
00055 typedef int int16;
00056
00057 #elif USHRT_MAX == 0xffff
00058
00059 typedef unsigned short uint16;
00060 typedef short int16;
00061
00062 #else
00063 #error This machine has no 16-bit type; report compiler, and the contents of your limits.h to the persons in the AUTHORS file
00064 #endif
00065
00066
00067 #if UINT_MAX == 0xfffffffful
00068
00069 typedef unsigned int uint32;
00070 typedef int int32;
00071
00072 #elif ULONG_MAX == 0xfffffffful
00073
00074 typedef unsigned long uint32;
00075 typedef long int32;
00076
00077 #elif USHRT_MAX == 0xfffffffful
00078
00079 typedef unsigned short uint32;
00080 typedef short int32;
00081
00082 #else
00083 #error This machine has no 32-bit type; report compiler, and the contents of your limits.h to the persons in the AUTHORS file
00084 #endif
00085
00086 #endif
00087