summaryrefslogtreecommitdiffstats
path: root/lib/cmpdi2.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2011-06-02 20:02:42 +0000
committered <ed@FreeBSD.org>2011-06-02 20:02:42 +0000
commitee2dbb0f7e84d908ac62aecc178992c9be1ca636 (patch)
tree51db692a6c937b68c7180d996af6bb7952b4b55d /lib/cmpdi2.c
parentcbbb7af7461cc897920c5924c6bdc1fe3b86a7e5 (diff)
downloadFreeBSD-src-ee2dbb0f7e84d908ac62aecc178992c9be1ca636.zip
FreeBSD-src-ee2dbb0f7e84d908ac62aecc178992c9be1ca636.tar.gz
Import compiler-rt r132478.
Diffstat (limited to 'lib/cmpdi2.c')
-rw-r--r--lib/cmpdi2.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/cmpdi2.c b/lib/cmpdi2.c
index 04bd7cf..999c3d2 100644
--- a/lib/cmpdi2.c
+++ b/lib/cmpdi2.c
@@ -6,20 +6,21 @@
* Source Licenses. See LICENSE.TXT for details.
*
* ===----------------------------------------------------------------------===
- *
+ *
* This file implements __cmpdi2 for the compiler_rt library.
*
* ===----------------------------------------------------------------------===
*/
+#include "abi.h"
#include "int_lib.h"
-/* Returns: if (a < b) returns 0
+/* Returns: if (a < b) returns 0
* if (a == b) returns 1
* if (a > b) returns 2
*/
-si_int
+COMPILER_RT_ABI si_int
__cmpdi2(di_int a, di_int b)
{
dwords x;
OpenPOWER on IntegriCloud