summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/truncdfsf2.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
commite63da933eba10f5ea5bf39af47a0ded719c2cf5d (patch)
tree3e39bc5ad29874dfa68646379425fc218b3f78aa /compiler-rt/lib/truncdfsf2.c
parent75e3c1993c6d1b78cddfd93d3a936b3dcdf5cebb (diff)
downloadbcm5719-llvm-e63da933eba10f5ea5bf39af47a0ded719c2cf5d.tar.gz
bcm5719-llvm-e63da933eba10f5ea5bf39af47a0ded719c2cf5d.zip
Move abi bits to separate header. Force AAPCS for EABI in accordance with ARM RTABI.
llvm-svn: 129769
Diffstat (limited to 'compiler-rt/lib/truncdfsf2.c')
-rw-r--r--compiler-rt/lib/truncdfsf2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler-rt/lib/truncdfsf2.c b/compiler-rt/lib/truncdfsf2.c
index f3de21959c0..1dbf02f5ef6 100644
--- a/compiler-rt/lib/truncdfsf2.c
+++ b/compiler-rt/lib/truncdfsf2.c
@@ -41,7 +41,7 @@
#include <limits.h>
#include <stdbool.h>
-#include "int_lib.h"
+#include "abi.h"
typedef double src_t;
typedef uint64_t src_rep_t;
@@ -70,7 +70,8 @@ static inline dst_t dstFromRep(dst_rep_t x) {
ARM_EABI_FNALIAS(d2f, truncdfsf2);
-dst_t __truncdfsf2(src_t a) {
+COMPILER_RT_ABI dst_t
+__truncdfsf2(src_t a) {
// Various constants whose values follow from the type parameters.
// Any reasonable optimizer will fold and propagate all of these.
OpenPOWER on IntegriCloud