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/ucmpdi2.c | |
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/ucmpdi2.c')
-rw-r--r-- | arch/arm/lib/ucmpdi2.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/lib/ucmpdi2.c b/arch/arm/lib/ucmpdi2.c index 6c6ae63efa02..3eb438c065b3 100644 --- a/arch/arm/lib/ucmpdi2.c +++ b/arch/arm/lib/ucmpdi2.c | |||
@@ -31,20 +31,20 @@ Boston, MA 02111-1307, USA. */ | |||
31 | 31 | ||
32 | #include "gcclib.h" | 32 | #include "gcclib.h" |
33 | 33 | ||
34 | word_type | 34 | int |
35 | __ucmpdi2 (DItype a, DItype b) | 35 | __ucmpdi2 (s64 a, s64 b) |
36 | { | 36 | { |
37 | DIunion au, bu; | 37 | DIunion au, bu; |
38 | 38 | ||
39 | au.ll = a, bu.ll = b; | 39 | au.ll = a, bu.ll = b; |
40 | 40 | ||
41 | if ((USItype) au.s.high < (USItype) bu.s.high) | 41 | if ((u32) au.s.high < (u32) bu.s.high) |
42 | return 0; | 42 | return 0; |
43 | else if ((USItype) au.s.high > (USItype) bu.s.high) | 43 | else if ((u32) au.s.high > (u32) bu.s.high) |
44 | return 2; | 44 | return 2; |
45 | if ((USItype) au.s.low < (USItype) bu.s.low) | 45 | if ((u32) au.s.low < (u32) bu.s.low) |
46 | return 0; | 46 | return 0; |
47 | else if ((USItype) au.s.low > (USItype) bu.s.low) | 47 | else if ((u32) au.s.low > (u32) bu.s.low) |
48 | return 2; | 48 | return 2; |
49 | return 1; | 49 | return 1; |
50 | } | 50 | } |