diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-10-01 15:28:11 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-10-01 21:11:32 -0700 |
commit | 545f0a7bd6623a744ef4dd5b35da01636dda565e (patch) | |
tree | 7f8761db6a2b04a2faf486e9f5b20feb64d13121 /tools | |
parent | a08253a00a0c37563ffabb3163de8088bca23933 (diff) |
optimize asm function table emitting
Diffstat (limited to 'tools')
-rw-r--r-- | tools/asm_module.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/asm_module.py b/tools/asm_module.py index 226b66b8..f383eba6 100644 --- a/tools/asm_module.py +++ b/tools/asm_module.py @@ -248,12 +248,14 @@ class AsmModule(): def merge_tables(self, table, main, side, replacements, f_bases, f_sizes): sig = table.split('_')[-1] side = side[1:-1].split(',') + side = map(lambda s: s.strip(), side) side = map(lambda f: replacements[f] if f in replacements else f, side) if not main: f_bases[sig] = 0 f_sizes[table] = len(side) return '[' + ','.join(side) + ']' main = main[1:-1].split(',') + main = map(lambda m: m.strip(), main) # TODO: handle non-aliasing case too assert len(main) % 2 == 0 f_bases[sig] = len(main) |