diff options
author | Bernhard Reutner-Fischer | 2007-01-18 10:32:09 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer | 2007-01-18 10:32:09 +0000 |
commit | c966ba46a9fb1bf3b3f697f4c838c284ce8ac040 (patch) | |
tree | 061c6758930f183d32b3182dbb1a403b5755b260 /include/platform.h | |
parent | f8384fa50c78bd3a03985aa24e67e09696965eda (diff) | |
download | busybox-c966ba46a9fb1bf3b3f697f4c838c284ce8ac040.zip busybox-c966ba46a9fb1bf3b3f697f4c838c284ce8ac040.tar.gz |
- move the smallint that is platform dependant to it's proper place
Diffstat (limited to 'include/platform.h')
-rw-r--r-- | include/platform.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h index 91d5f47..b927c54 100644 --- a/include/platform.h +++ b/include/platform.h @@ -172,6 +172,17 @@ typedef unsigned long long int uintmax_t; #endif #endif +/* Size-saving "small" ints (arch-dependent) */ +#if defined(i386) || defined(__x86_64__) || defined(__mips__) || defined(__cris__) +/* add other arches which benefit from this... */ +typedef signed char smallint; +typedef unsigned char smalluint; +#else +/* for arches where byte accesses generate larger code: */ +typedef int smallint; +typedef unsigned smalluint; +#endif + /* uclibc does not implement daemon() for no-mmu systems. * For 0.9.29 and svn, __ARCH_USE_MMU__ indicates no-mmu reliably. * For earlier versions there is no reliable way to check if we are building |