zig/lib/std/special/compiler_rt/fixtfdi.zig
Frank Denis 6c2e0c2046 Year++
2020-12-31 15:45:24 -08:00

17 lines
542 B
Zig

// SPDX-License-Identifier: MIT
// Copyright (c) 2015-2021 Zig Contributors
// This file is part of [zig](https://ziglang.org/), which is MIT licensed.
// The MIT license requires this copyright notice to be included in all copies
// and substantial portions of the software.
const fixint = @import("fixint.zig").fixint;
const builtin = @import("builtin");
pub fn __fixtfdi(a: f128) callconv(.C) i64 {
@setRuntimeSafety(builtin.is_test);
return fixint(f128, i64, a);
}
test "import fixtfdi" {
_ = @import("fixtfdi_test.zig");
}