summaryrefslogtreecommitdiffstats
path: root/arch/arm/lib/ucmpdi2.c
diff options
context:
space:
mode:
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;
}