aboutsummaryrefslogtreecommitdiff
path: root/lib/x86_64/floatdidf.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/x86_64/floatdidf.c')
-rw-r--r--lib/x86_64/floatdidf.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/x86_64/floatdidf.c b/lib/x86_64/floatdidf.c
new file mode 100644
index 000000000000..cce3cd514a40
--- /dev/null
+++ b/lib/x86_64/floatdidf.c
@@ -0,0 +1,16 @@
+/* This file is distributed under the University of Illinois Open Source
+ * License. See LICENSE.TXT for details.
+ */
+
+/* double __floatdidf(di_int a); */
+
+#ifdef __x86_64__
+
+#include <stdint.h>
+
+double __floatdidf(int64_t a)
+{
+ return (double)a;
+}
+
+#endif /* __x86_64__ */