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:
Alex Rønne Petersen committed 2026-10-26 11:02:43 +01:00
1 parent f542e8050e
commit 4d94cf182f
1 file changed
+1 -1
+1 -1
View File
@@ -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, .{