aboutsummaryrefslogtreecommitdiff
path: root/contrib/compiler-rt/lib/builtins/x86_64/floatdidf.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/compiler-rt/lib/builtins/x86_64/floatdidf.c')
-rw-r--r--contrib/compiler-rt/lib/builtins/x86_64/floatdidf.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/compiler-rt/lib/builtins/x86_64/floatdidf.c b/contrib/compiler-rt/lib/builtins/x86_64/floatdidf.c
new file mode 100644
index 000000000000..388404e5e089
--- /dev/null
+++ b/contrib/compiler-rt/lib/builtins/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 "../int_lib.h"
+
+double __floatdidf(int64_t a)
+{
+ return (double)a;
+}
+
+#endif /* __x86_64__ */