| ... | ... | @@ -7,7 +7,6 @@ const fmt = std.fmt; |
| 7 | 7 | const math = std.math; |
| 8 | 8 | const mem = std.mem; |
| 9 | 9 | const testing = std.testing; |
| 10 | | const Vector = std.meta.Vector; |
| 11 | 10 | |
| 12 | 11 | const ChunkIterator = struct { |
| 13 | 12 | slice: []u8, |
| ... | ... | @@ -59,7 +58,7 @@ const DERIVE_KEY_CONTEXT: u8 = 1 << 5; |
| 59 | 58 | const DERIVE_KEY_MATERIAL: u8 = 1 << 6; |
| 60 | 59 | |
| 61 | 60 | const CompressVectorized = struct { |
| 62 | | const Lane = Vector(4, u32); |
| 61 | const Lane = @Vector(4, u32); |
| 63 | 62 | const Rows = [4]Lane; |
| 64 | 63 | |
| 65 | 64 | inline fn g(comptime even: bool, rows: *Rows, m: Lane) void { |
| ... | ... | @@ -132,8 +131,8 @@ const CompressVectorized = struct { |
| 132 | 131 | |
| 133 | 132 | rows[0] ^= rows[2]; |
| 134 | 133 | rows[1] ^= rows[3]; |
| 135 | | rows[2] ^= Vector(4, u32){ chaining_value[0], chaining_value[1], chaining_value[2], chaining_value[3] }; |
| 136 | | rows[3] ^= Vector(4, u32){ chaining_value[4], chaining_value[5], chaining_value[6], chaining_value[7] }; |
| 134 | rows[2] ^= @Vector(4, u32){ chaining_value[0], chaining_value[1], chaining_value[2], chaining_value[3] }; |
| 135 | rows[3] ^= @Vector(4, u32){ chaining_value[4], chaining_value[5], chaining_value[6], chaining_value[7] }; |
| 137 | 136 | |
| 138 | 137 | return @bitCast([16]u32, rows); |
| 139 | 138 | } |