00001 00038 #ifndef ARCH_STDINT_H_INCLUDED 00039 #define ARCH_STDINT_H_INCLUDED 00040 00041 typedef signed char int8_t; 00042 typedef signed short int16_t; 00043 typedef signed long int32_t; 00044 typedef signed long long int64_t; 00045 00046 typedef unsigned char uint8_t; 00047 typedef unsigned short uint16_t; 00048 typedef unsigned long uint32_t; 00049 typedef unsigned long long uint64_t; 00050 00051 typedef int8_t int_least8_t; 00052 typedef int16_t int_least16_t; 00053 typedef int32_t int_least32_t; 00054 typedef int64_t int_least64_t; 00055 00056 typedef uint8_t uint_least8_t; 00057 typedef uint16_t uint_least16_t; 00058 typedef uint32_t uint_least32_t; 00059 typedef uint64_t uint_least64_t; 00060 00061 typedef int8_t int_fast8_t; 00062 typedef int16_t int_fast16_t; 00063 typedef int32_t int_fast32_t; 00064 typedef int64_t int_fast64_t; 00065 00066 typedef uint8_t uint_fast8_t; 00067 typedef uint16_t uint_fast16_t; 00068 typedef uint32_t uint_fast32_t; 00069 typedef uint64_t uint_fast64_t; 00070 00071 #ifdef __ICCAVR__ 00072 typedef __INTPTR_T_TYPE__ intptr_t; 00073 typedef __UINTPTR_T_TYPE__ uintptr_t; 00074 #else 00075 typedef int16_t intptr_t; 00076 typedef uint16_t uintptr_t; 00077 #endif 00078 00079 typedef int64_t intmax_t; 00080 typedef uint64_t uintmax_t; 00081 00082 #define INT8_MIN (-128) 00083 #define INT16_MIN (-32767 - 1) 00084 #define INT32_MIN (-2147483647L - 1) 00085 #define INT64_MIN (-9223372036854775807LL - 1) 00086 #define INT8_MAX (127) 00087 #define INT16_MAX (32767) 00088 #define INT32_MAX (2147483647L) 00089 #define INT64_MAX (9223372036854775807LL) 00090 #define UINT8_MAX (255) 00091 #define UINT16_MAX (65535U) 00092 #define UINT32_MAX (4294967295UL) 00093 #define UINT64_MAX (18446744073709551615ULL) 00094 00095 #define INT_LEAST8_MIN INT8_MIN 00096 #define INT_LEAST16_MIN INT16_MIN 00097 #define INT_LEAST32_MIN INT32_MIN 00098 #define INT_LEAST64_MIN INT64_MIN 00099 #define INT_LEAST8_MAX INT8_MAX 00100 #define INT_LEAST16_MAX INT16_MAX 00101 #define INT_LEAST32_MAX INT32_MAX 00102 #define INT_LEAST64_MAX INT64_MAX 00103 #define UINT_LEAST8_MAX UINT8_MAX 00104 #define UINT_LEAST16_MAX UINT16_MAX 00105 #define UINT_LEAST32_MAX UINT32_MAX 00106 #define UINT_LEAST64_MAX UINT64_MAX 00107 00108 #define INT_FAST8_MIN INT8_MIN 00109 #define INT_FAST16_MIN INT16_MIN 00110 #define INT_FAST32_MIN INT32_MIN 00111 #define INT_FAST64_MIN INT64_MIN 00112 #define INT_FAST8_MAX INT8_MAX 00113 #define INT_FAST16_MAX INT16_MAX 00114 #define INT_FAST32_MAX INT32_MAX 00115 #define INT_FAST64_MAX INT64_MAX 00116 #define UINT_FAST8_MAX UINT8_MAX 00117 #define UINT_FAST16_MAX UINT16_MAX 00118 #define UINT_FAST32_MAX UINT32_MAX 00119 #define UINT_FAST64_MAX UINT64_MAX 00120 00121 #ifdef __ICCAVR__ 00122 # define INTPTR_MIN __INTPTR_T_MIN__ 00123 # define INTPTR_MAX __INTPTR_T_MAX__ 00124 # define UINTPTR_MAX __UINTPTR_T_MAX__ 00125 #else 00126 # define INTPTR_MIN INT16_MIN 00127 # define INTPTR_MAX INT16_MAX 00128 # define UINTPTR_MAX UINT16_MAX 00129 #endif 00130 00131 #define INTMAX_MIN INT64_MIN 00132 #define INTMAX_MAX INT64_MAX 00133 #define UINTMAX_MAX UINT64_MAX 00134 00135 #endif /* ARCH_STDINT_H_INCLUDED */
1.6.3