summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/builtins/truncdfhf2.c
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/builtins/truncdfhf2.c')
-rw-r--r--compiler-rt/lib/builtins/truncdfhf2.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/compiler-rt/lib/builtins/truncdfhf2.c b/compiler-rt/lib/builtins/truncdfhf2.c
index 17195cd9e79..4bb71aa178a 100644
--- a/compiler-rt/lib/builtins/truncdfhf2.c
+++ b/compiler-rt/lib/builtins/truncdfhf2.c
@@ -11,8 +11,13 @@
#define DST_HALF
#include "fp_trunc_impl.inc"
-ARM_EABI_FNALIAS(d2h, truncdfhf2)
-
COMPILER_RT_ABI uint16_t __truncdfhf2(double a) {
return __truncXfYf2__(a);
}
+
+#if defined(__ARM_EABI__)
+AEABI_RTABI uint16_t __aeabi_d2h(double a) {
+ return __truncdfhf2(a);
+}
+#endif
+
OpenPOWER on IntegriCloud