You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
const std = @import("std");
|
|
const builtin = std.builtin;
|
|
const big = @as(f64, 1 << 40);
|
|
|
|
export fn foo_strict(x: f64) f64 {
|
|
return x + big - big;
|
|
}
|
|
|
|
export fn foo_optimized(x: f64) f64 {
|
|
@setFloatMode(.Optimized);
|
|
return x + big - big;
|
|
}
|