summaryrefslogtreecommitdiff
path: root/arch/arm/lib/ucmpdi2.c
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2005-06-20 15:49:59 +0100
committerRussell King <rmk@dyn-67.arm.linux.org.uk>2005-06-20 15:49:59 +0100
commitf29481c0e7e55efc25598c1a6c503015cfe45245 (patch)
tree6ff6a52e54e5ec46648260df9cfb97308f8c05c2 /arch/arm/lib/ucmpdi2.c
parent34c8eacab670e578a2aaafdf1061efd214b2f639 (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.c12
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. */
#include "gcclib.h"
-word_type
-__ucmpdi2 (DItype a, DItype b)
+int
+__ucmpdi2 (s64 a, s64 b)
{
DIunion au, bu;
au.ll = a, bu.ll = b;
- if ((USItype) au.s.high < (USItype) bu.s.high)
+ if ((u32) au.s.high < (u32) bu.s.high)
return 0;
- else if ((USItype) au.s.high > (USItype) bu.s.high)
+ else if ((u32) au.s.high > (u32) bu.s.high)
return 2;
- if ((USItype) au.s.low < (USItype) bu.s.low)
+ if ((u32) au.s.low < (u32) bu.s.low)
return 0;
- else if ((USItype) au.s.low > (USItype) bu.s.low)
+ else if ((u32) au.s.low > (u32) bu.s.low)
return 2;
return 1;
}