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