diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2005-06-20 10:49:59 -0400 |
---|---|---|
committer | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2005-06-20 10:49:59 -0400 |
commit | f29481c0e7e55efc25598c1a6c503015cfe45245 (patch) | |
tree | 6ff6a52e54e5ec46648260df9cfb97308f8c05c2 /arch/arm/lib/gcclib.h | |
parent | 34c8eacab670e578a2aaafdf1061efd214b2f639 (diff) |
[PATCH] ARM: Remove gcc type-isms from GCC helper functions
Convert ugly GCC types to Linux types:
UQImode -> u8
SImode -> s32
USImode -> u32
DImode -> s64
UDImode -> u64
word_type -> int
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/lib/gcclib.h')
-rw-r--r-- | arch/arm/lib/gcclib.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/arch/arm/lib/gcclib.h b/arch/arm/lib/gcclib.h index 65314a3d9e27..283f5294cc3e 100644 --- a/arch/arm/lib/gcclib.h +++ b/arch/arm/lib/gcclib.h | |||
@@ -1,25 +1,20 @@ | |||
1 | /* gcclib.h -- definitions for various functions 'borrowed' from gcc-2.95.3 */ | 1 | /* gcclib.h -- definitions for various functions 'borrowed' from gcc-2.95.3 */ |
2 | /* I Molton 29/07/01 */ | 2 | /* I Molton 29/07/01 */ |
3 | 3 | ||
4 | #define BITS_PER_UNIT 8 | 4 | #include <linux/types.h> |
5 | #define SI_TYPE_SIZE (sizeof (SItype) * BITS_PER_UNIT) | ||
6 | 5 | ||
7 | typedef unsigned int UQItype __attribute__ ((mode (QI))); | 6 | #define BITS_PER_UNIT 8 |
8 | typedef int SItype __attribute__ ((mode (SI))); | 7 | #define SI_TYPE_SIZE (sizeof(s32) * BITS_PER_UNIT) |
9 | typedef unsigned int USItype __attribute__ ((mode (SI))); | ||
10 | typedef int DItype __attribute__ ((mode (DI))); | ||
11 | typedef int word_type __attribute__ ((mode (__word__))); | ||
12 | typedef unsigned int UDItype __attribute__ ((mode (DI))); | ||
13 | 8 | ||
14 | #ifdef __ARMEB__ | 9 | #ifdef __ARMEB__ |
15 | struct DIstruct {SItype high, low;}; | 10 | struct DIstruct {s32 high, low;}; |
16 | #else | 11 | #else |
17 | struct DIstruct {SItype low, high;}; | 12 | struct DIstruct {s32 low, high;}; |
18 | #endif | 13 | #endif |
19 | 14 | ||
20 | typedef union | 15 | typedef union |
21 | { | 16 | { |
22 | struct DIstruct s; | 17 | struct DIstruct s; |
23 | DItype ll; | 18 | s64 ll; |
24 | } DIunion; | 19 | } DIunion; |
25 | 20 | ||