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