summaryrefslogtreecommitdiff
path: root/lib/negvdi2.c
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2011-04-19 17:52:09 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2011-04-19 17:52:09 +0000
commit1c5f89b1dd741135a4007ab577723d422f421eec (patch)
treecc4bc911bef51c2a78946ec54aac48020bebf9de /lib/negvdi2.c
parent37b97d1cf4501b94347e0b4e880f4b25825a289f (diff)
downloadcompiler-rt-1c5f89b1dd741135a4007ab577723d422f421eec.tar.gz
compiler-rt-1c5f89b1dd741135a4007ab577723d422f421eec.tar.bz2
compiler-rt-1c5f89b1dd741135a4007ab577723d422f421eec.tar.xz
Move abi bits to separate header. Force AAPCS for EABI in accordance with ARM RTABI.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@129769 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/negvdi2.c')
-rw-r--r--lib/negvdi2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/negvdi2.c b/lib/negvdi2.c
index 2851d26f..aafaa9dc 100644
--- a/lib/negvdi2.c
+++ b/lib/negvdi2.c
@@ -11,6 +11,7 @@
*
* ===----------------------------------------------------------------------===
*/
+#include "abi.h"
#include "int_lib.h"
#include <stdlib.h>
@@ -19,7 +20,7 @@
/* Effects: aborts if -a overflows */
-di_int
+COMPILER_RT_ABI di_int
__negvdi2(di_int a)
{
const di_int MIN = (di_int)1 << ((int)(sizeof(di_int) * CHAR_BIT)-1);