mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +00:00
13 lines
268 B
Zig
13 lines
268 B
Zig
const print = @import("std").debug.print;
|
|
|
|
extern fn foo_strict(x: f64) f64;
|
|
extern fn foo_optimized(x: f64) f64;
|
|
|
|
pub fn main() void {
|
|
const x = 0.001;
|
|
print("optimized = {}\n", .{foo_optimized(x)});
|
|
print("strict = {}\n", .{foo_strict(x)});
|
|
}
|
|
|
|
// syntax
|