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