We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const std = @import("std"); const nan = std.math.nan; var rt_nan: @Vector(1, f32) = .{nan(f32)}; var rt_zero: @Vector(1, f32) = .{0}; const ct_zero: @Vector(1, f32) = .{0}; pub fn main() void { std.debug.print("{} {}\n", .{ @divTrunc(rt_zero, rt_nan), @divTrunc(ct_zero, rt_nan) }); std.debug.print("{} {}\n", .{ @divFloor(rt_zero, rt_nan), @divFloor(ct_zero, rt_nan) }); }
$ zig run repro.zig { nan } { 0e0 } { nan } { 0e0 }
As an added bonus for fixing this bug, you can delete the lines in test/behavior/x86_64/math.zig referencing this issue!
test/behavior/x86_64/math.zig
The text was updated successfully, but these errors were encountered:
No branches or pull requests
As an added bonus for fixing this bug, you can delete the lines in
test/behavior/x86_64/math.zig
referencing this issue!The text was updated successfully, but these errors were encountered: