mirror of
https://github.com/ziglang/zig.git
synced 2024-11-30 09:02:32 +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
|