summaryrefslogtreecommitdiffstats
path: root/contrib/compiler-rt/lib/ucmpdi2.c
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2013-01-18 22:52:59 +0000
committerandrew <andrew@FreeBSD.org>2013-01-18 22:52:59 +0000
commit1503599bdce0b577ceb27d1332e6ac5e586389f9 (patch)
treed700fc7bf0c3bb2f309e25c1cec8bcdb4e60f832 /contrib/compiler-rt/lib/ucmpdi2.c
parentd0b9f3f9cfbe900c3fad63d0186d237e265b69f5 (diff)
downloadFreeBSD-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/ucmpdi2.c')
-rw-r--r--contrib/compiler-rt/lib/ucmpdi2.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/compiler-rt/lib/ucmpdi2.c b/contrib/compiler-rt/lib/ucmpdi2.c
index 3242bbf..40af236 100644
--- a/contrib/compiler-rt/lib/ucmpdi2.c
+++ b/contrib/compiler-rt/lib/ucmpdi2.c
@@ -36,3 +36,16 @@ __ucmpdi2(du_int a, du_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_ulcmp(di_int a, di_int b)
+{
+ return __ucmpdi2(a, b) - 1;
+}
+#endif
+
OpenPOWER on IntegriCloud