aboutsummaryrefslogtreecommitdiff
path: root/lib/truncdfsf2.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/truncdfsf2.c')
-rw-r--r--lib/truncdfsf2.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/truncdfsf2.c b/lib/truncdfsf2.c
index 92609fb784c9..1dbf02f5ef63 100644
--- a/lib/truncdfsf2.c
+++ b/lib/truncdfsf2.c
@@ -41,6 +41,8 @@
#include <limits.h>
#include <stdbool.h>
+#include "abi.h"
+
typedef double src_t;
typedef uint64_t src_rep_t;
#define SRC_REP_C UINT64_C
@@ -66,7 +68,10 @@ static inline dst_t dstFromRep(dst_rep_t x) {
// End helper routines. Conversion implementation follows.
-dst_t __truncdfsf2(src_t a) {
+ARM_EABI_FNALIAS(d2f, truncdfsf2);
+
+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.