aboutsummaryrefslogtreecommitdiff
path: root/lib/std/special/compiler_rt/fixtfti.zig
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/special/compiler_rt/fixtfti.zig')
-rw-r--r--lib/std/special/compiler_rt/fixtfti.zig11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/std/special/compiler_rt/fixtfti.zig b/lib/std/special/compiler_rt/fixtfti.zig
new file mode 100644
index 0000000000..07d38f2c3b
--- /dev/null
+++ b/lib/std/special/compiler_rt/fixtfti.zig
@@ -0,0 +1,11 @@
+const fixint = @import("fixint.zig").fixint;
+const builtin = @import("builtin");
+
+pub extern fn __fixtfti(a: f128) i128 {
+ @setRuntimeSafety(builtin.is_test);
+ return fixint(f128, i128, a);
+}
+
+test "import fixtfti" {
+ _ = @import("fixtfti_test.zig");
+}