int_sizes.h
00001
00002 #ifndef INT_SIZES_H
00003 #define INT_SIZES_H
00004
00005 #define INT8_T char
00006 #define INT16_T short
00007 #define INT32_T int
00008 #define INT64_T long long
00009 #define PTRINT_T long long
00010
00011 #define INT8_FORMAT "%hhd"
00012 #define INT16_FORMAT "%hd"
00013 #define INT32_FORMAT "%d"
00014 #define INT64_FORMAT "%lld"
00015 #define PTR_FORMAT "%llx"
00016
00017 #define UINT8_T unsigned char
00018 #define UINT16_T unsigned short
00019 #define UINT32_T unsigned int
00020 #define UINT64_T unsigned long long
00021 #define UPTRINT_T unsigned long long
00022
00023 #define UINT8_FORMAT "%hhu"
00024 #define UINT16_FORMAT "%hu"
00025 #define UINT32_FORMAT "%u"
00026 #define UINT64_FORMAT "%llu"
00027 #define UPTR_FORMAT "%llx"
00028 #endif