]> git.draconx.ca Git - dxcommon.git/commit
copysym: Integrate code offset into lookup table.
authorNick Bowler <nbowler@draconx.ca>
Wed, 21 Feb 2024 01:52:04 +0000 (20:52 -0500)
committerNick Bowler <nbowler@draconx.ca>
Fri, 23 Feb 2024 01:31:59 +0000 (20:31 -0500)
commitd370ab57b97f352ace48992a01dc57ad84d57dd0
tree90b8c498ac5fd4442c05172189f15fcca494871e
parent14c0c9a9e5eeacc82904f4cc33e0842f5ee9ec44
copysym: Integrate code offset into lookup table.

Instead of shifting out a nibble from a 64-bit constant based on the
lookup result, we can just add a byte to each entry in the table with
the same value.  Since we no longer need to worry about fitting the
offsets into 4 bits we can also rearrange the code array a bit, for
an overall code size reduction.
src/copysym.c