mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-10-28 10:45:48 +08:00
std.hash.crc: fix x86_64 + crc32 feature check
The 64bit feature just indicates that the model has long mode support; it does not necessarily mean that we are compiling for 64-bit.
This commit is contained in:
1 file changed
+1
-1
@@ -786,7 +786,7 @@ pub const @"CRC-32/CKSUM" = Generic(u32, .{
|
||||
.xor_output = 0xffffffff,
|
||||
});
|
||||
|
||||
pub const @"CRC-32/ISCSI" = if (builtin.cpu.hasAll(.x86, &.{ .@"64bit", .crc32 }))
|
||||
pub const @"CRC-32/ISCSI" = if (builtin.target.cpu.arch == .x86_64 and builtin.target.cpu.has(.x86, .crc32))
|
||||
@import("crc/Crc32c.zig")
|
||||
else
|
||||
Generic(u32, .{
|
||||
|
||||
Reference in new issue
Block a user