From ebbc521a8742fe264bf9738082ce1e6b1894e04d Mon Sep 17 00:00:00 2001 From: Veikka Tuominen Date: Tue, 16 May 2023 11:37:25 +0300 Subject: [PATCH] workaround AstGen's love for copying arrays --- lib/std/crypto/aes/soft.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/std/crypto/aes/soft.zig b/lib/std/crypto/aes/soft.zig index 7a8e7ff0ec..4c2a8ff80d 100644 --- 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), }; } }