summaryrefslogtreecommitdiff
path: root/lib/builtins/truncdfhf2.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/builtins/truncdfhf2.c')
-rw-r--r--lib/builtins/truncdfhf2.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/builtins/truncdfhf2.c b/lib/builtins/truncdfhf2.c
index 4bb71aa178a0a..8354a41b8b6f1 100644
--- a/lib/builtins/truncdfhf2.c
+++ b/lib/builtins/truncdfhf2.c
@@ -16,8 +16,11 @@ COMPILER_RT_ABI uint16_t __truncdfhf2(double a) {
}
#if defined(__ARM_EABI__)
+#if defined(COMPILER_RT_ARMHF_TARGET)
AEABI_RTABI uint16_t __aeabi_d2h(double a) {
return __truncdfhf2(a);
}
+#else
+AEABI_RTABI uint16_t __aeabi_d2h(double a) COMPILER_RT_ALIAS(__truncdfhf2);
+#endif
#endif
-