stdint.h

Go to the documentation of this file.
00001 #ifndef I386_STDINT_H
00002 #define I386_STDINT_H
00003 
00004 #if defined(__GNUC__) && !defined(__ROMCC__)
00005 #define __HAVE_LONG_LONG__ 1
00006 #else
00007 #define __HAVE_LONG_LONG__ 0
00008 #endif
00009 
00010 /* Exact integral types */
00011 typedef unsigned char      uint8_t;
00012 typedef signed char        int8_t; 
00013 
00014 typedef unsigned short     uint16_t;
00015 typedef signed short       int16_t;
00016 
00017 typedef unsigned int       uint32_t;
00018 typedef signed int         int32_t;
00019 
00020 #if __HAVE_LONG_LONG__
00021 typedef unsigned long long uint64_t;
00022 typedef signed long long   int64_t;
00023 #endif
00024 
00025 /* Small types */
00026 typedef unsigned char      uint_least8_t;
00027 typedef signed char        int_least8_t; 
00028 
00029 typedef unsigned short     uint_least16_t;
00030 typedef signed short       int_least16_t;
00031 
00032 typedef unsigned int       uint_least32_t;
00033 typedef signed int         int_least32_t;
00034 
00035 #if __HAVE_LONG_LONG__
00036 typedef unsigned long long uint_least64_t;
00037 typedef signed long long   int_least64_t;
00038 #endif
00039 
00040 /* Fast Types */
00041 typedef unsigned char      uint_fast8_t;
00042 typedef signed char        int_fast8_t; 
00043 
00044 typedef unsigned int       uint_fast16_t;
00045 typedef signed int         int_fast16_t;
00046 
00047 typedef unsigned int       uint_fast32_t;
00048 typedef signed int         int_fast32_t;
00049 
00050 #if __HAVE_LONG_LONG__
00051 typedef unsigned long long uint_fast64_t;
00052 typedef signed long long   int_fast64_t;
00053 #endif 
00054 
00055 /* Types for `void *' pointers.  */
00056 typedef int                intptr_t;
00057 typedef unsigned int       uintptr_t;
00058 
00059 /* Largest integral types */
00060 #if __HAVE_LONG_LONG__
00061 typedef long long int      intmax_t;
00062 typedef unsigned long long uintmax_t;
00063 #else
00064 typedef long int           intmax_t;
00065 typedef unsigned long int  uintmax_t;
00066 #endif
00067 
00068 #undef __HAVE_LONG_LONG__
00069 
00070 typedef uint8_t u8;
00071 typedef uint16_t u16;
00072 typedef uint32_t u32;
00073 
00074 
00075 #endif /* I386_STDINT_H */

Generated on Mon Dec 29 10:54:06 2008 for coreboot by  doxygen 1.5.5