zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit ac434fd8cc1105912d29f209e2f9f67e5af3a744 (tree)
parent 955e394792af69fc8c795802c0165e5c86f5ea73
Author: Jakub Konka <kubkon@jakubkonka.com>
Date:   Sun, 12 Mar 2023 22:06:22 +0100

x86_64: avoid inline for-loops when scanning the encodings table

Diffstat:
Msrc/arch/x86_64/Encoding.zig | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/arch/x86_64/Encoding.zig b/src/arch/x86_64/Encoding.zig @@ -68,7 +68,7 @@ pub fn findByMnemonic(mnemonic: Mnemonic, args: struct { // TODO work out what is the maximum number of variants we can actually find in one swoop. var candidates: [10]Encoding = undefined; var count: usize = 0; - inline for (table) |entry| { + for (table) |entry| { const enc = Encoding{ .mnemonic = entry[0], .op_en = entry[1], @@ -162,7 +162,7 @@ pub fn findByOpcode(opc: []const u8, prefixes: struct { legacy: LegacyPrefixes, rex: Rex, }, modrm_ext: ?u3) ?Encoding { - inline for (table) |entry| { + for (table) |entry| { const enc = Encoding{ .mnemonic = entry[0], .op_en = entry[1],