summaryrefslogtreecommitdiff
path: root/lib/libcompiler_rt/fixunsdfsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libcompiler_rt/fixunsdfsi.c')
-rw-r--r--lib/libcompiler_rt/fixunsdfsi.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/libcompiler_rt/fixunsdfsi.c b/lib/libcompiler_rt/fixunsdfsi.c
new file mode 100644
index 00000000000..232d342d77d
--- /dev/null
+++ b/lib/libcompiler_rt/fixunsdfsi.c
@@ -0,0 +1,21 @@
+/* ===-- fixunsdfsi.c - Implement __fixunsdfsi -----------------------------===
+ *
+ * The LLVM Compiler Infrastructure
+ *
+ * This file is dual licensed under the MIT and the University of Illinois Open
+ * Source Licenses. See LICENSE.TXT for details.
+ *
+ * ===----------------------------------------------------------------------===
+ */
+
+#define DOUBLE_PRECISION
+#include "fp_lib.h"
+typedef su_int fixuint_t;
+#include "fp_fixuint_impl.inc"
+
+ARM_EABI_FNALIAS(d2uiz, fixunsdfsi)
+
+COMPILER_RT_ABI su_int
+__fixunsdfsi(fp_t a) {
+ return __fixuint(a);
+}