commit ebbc521a8742fe264bf9738082ce1e6b1894e04d (tree)
parent fdf1675c58f029bc08e2aebdad06a5ef5924e81d
Author: Veikka Tuominen <git@vexu.eu>
Date: Tue, 16 May 2023 11:37:25 +0300
workaround AstGen's love for copying arrays
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/std/crypto/aes/soft.zig b/lib/std/crypto/aes/soft.zig
@@ -739,9 +739,9 @@ inline fn table_lookup(table: *align(64) const [4][256]u32, idx0: u8, idx1: u8,
std.mem.doNotOptimizeAway(t);
return [4]u32{
t[0][idx0 / stride],
- math.rotl(u32, t[1][idx1 / stride], 8),
- math.rotl(u32, t[2][idx2 / stride], 16),
- math.rotl(u32, t[3][idx3 / stride], 24),
+ math.rotl(u32, (&t[1])[idx1 / stride], 8),
+ math.rotl(u32, (&t[2])[idx2 / stride], 16),
+ math.rotl(u32, (&t[3])[idx3 / stride], 24),
};
}
}