diff options
author | Eric Biederman <ebiederm@xmission.com> | 2003-05-19 19:16:21 +0000 |
---|---|---|
committer | Eric Biederman <ebiederm@xmission.com> | 2003-05-19 19:16:21 +0000 |
commit | 526855741b6abb970024366316b941fb6b3d2cb6 (patch) | |
tree | 7da1560ec08c513a23b23704cae3637925e5bd68 /src/arch/i386/include/stdint.h | |
parent | 49cf5967ce31af37e61d59a00939f50bc4256761 (diff) |
- Cleanups on the romcc side including a pci interface that uses
fewer registers, and is easier to hardcode.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@838 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/arch/i386/include/stdint.h')
-rw-r--r-- | src/arch/i386/include/stdint.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/arch/i386/include/stdint.h b/src/arch/i386/include/stdint.h index 58d7519cde..0fc4346317 100644 --- a/src/arch/i386/include/stdint.h +++ b/src/arch/i386/include/stdint.h @@ -1,6 +1,12 @@ #ifndef I386_STDINT_H #define I386_STDINT_H +#if defined(__GNUC__) +#define __HAVE_LONG_LONG__ 1 +#else +#define __HAVE_LONG_LONG__ 0 +#endif + /* Exact integral types */ typedef unsigned char uint8_t; typedef signed char int8_t; @@ -11,8 +17,10 @@ typedef signed short int16_t; typedef unsigned int uint32_t; typedef signed int int32_t; +#if __HAVE_LONG_LONG__ typedef unsigned long long uint64_t; typedef signed long long int64_t; +#endif /* Small types */ typedef unsigned char uint_least8_t; @@ -24,8 +32,10 @@ typedef signed short int_least16_t; typedef unsigned int uint_least32_t; typedef signed int int_least32_t; +#if __HAVE_LONG_LONG__ typedef unsigned long long uint_least64_t; typedef signed long long int_least64_t; +#endif /* Fast Types */ typedef unsigned char uint_fast8_t; @@ -37,16 +47,25 @@ typedef signed int int_fast16_t; typedef unsigned int uint_fast32_t; typedef signed int int_fast32_t; +#if __HAVE_LONG_LONG__ typedef unsigned long long uint_fast64_t; typedef signed long long int_fast64_t; +#endif /* Types for `void *' pointers. */ typedef int intptr_t; typedef unsigned int uintptr_t; /* Largest integral types */ +#if __HAVE_LONG_LONG__ typedef long long int intmax_t; typedef unsigned long long uintmax_t; +#else +typedef long int intmax_t; +typedef unsigned long int uintmax_t; +#endif + +#undef __HAVE_LONG_LONG__ #endif /* I386_STDINT_H */ |