diff options
author | andrew <andrew@FreeBSD.org> | 2013-01-18 22:52:59 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2013-01-18 22:52:59 +0000 |
commit | 1503599bdce0b577ceb27d1332e6ac5e586389f9 (patch) | |
tree | d700fc7bf0c3bb2f309e25c1cec8bcdb4e60f832 /contrib/compiler-rt/lib/cmpdi2.c | |
parent | d0b9f3f9cfbe900c3fad63d0186d237e265b69f5 (diff) | |
download | FreeBSD-src-1503599bdce0b577ceb27d1332e6ac5e586389f9.zip FreeBSD-src-1503599bdce0b577ceb27d1332e6ac5e586389f9.tar.gz |
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.
Diffstat (limited to 'contrib/compiler-rt/lib/cmpdi2.c')
-rw-r--r-- | contrib/compiler-rt/lib/cmpdi2.c | 13 |
1 files changed, 13 insertions, 0 deletions
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 + |