From 1503599bdce0b577ceb27d1332e6ac5e586389f9 Mon Sep 17 00:00:00 2001 From: andrew Date: Fri, 18 Jan 2013 22:52:59 +0000 Subject: Import compiler-rt r172839. This brings in __aeabi_lcmp and __aeabi_ulcmp. It also fixes the spelling of __aeabi_f2lz. Both changes originated on the arm_eabi project branch. --- contrib/compiler-rt/lib/cmpdi2.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'contrib/compiler-rt/lib/cmpdi2.c') diff --git a/contrib/compiler-rt/lib/cmpdi2.c b/contrib/compiler-rt/lib/cmpdi2.c index c2b1f69..52634d9 100644 --- a/contrib/compiler-rt/lib/cmpdi2.c +++ b/contrib/compiler-rt/lib/cmpdi2.c @@ -36,3 +36,16 @@ __cmpdi2(di_int a, di_int b) return 2; return 1; } + +#ifdef __ARM_EABI__ +/* Returns: if (a < b) returns -1 +* if (a == b) returns 0 +* if (a > b) returns 1 +*/ +COMPILER_RT_ABI si_int +__aeabi_lcmp(di_int a, di_int b) +{ + return __cmpdi2(a, b) - 1; +} +#endif + -- cgit v1.1