aboutsummaryrefslogtreecommitdiff
path: root/compiler-rt/lib/builtins/x86_64/floatdisf.c
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/builtins/x86_64/floatdisf.c')
-rw-r--r--compiler-rt/lib/builtins/x86_64/floatdisf.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/compiler-rt/lib/builtins/x86_64/floatdisf.c b/compiler-rt/lib/builtins/x86_64/floatdisf.c
new file mode 100644
index 000000000000..06c118cfa18d
--- /dev/null
+++ b/compiler-rt/lib/builtins/x86_64/floatdisf.c
@@ -0,0 +1,11 @@
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+
+#if defined(__x86_64__) || defined(_M_X64)
+
+#include "../int_lib.h"
+
+float __floatdisf(int64_t a) { return (float)a; }
+
+#endif // __x86_64__