Files
micropython/tests/inlineasm
Alessandro Gatti b67c55cb4f py/emitinlinethumb: Shrink condition code lookups.
This commit optimises the lookup of opcodes' condition codes, in order
to take up less code than before.

The original data was held in a table containing the condition code
value (an incrementing 0-based integer) and the two condition ASCII
characters.  Given that the condition code value also matches the
entry's index in the table, that can be safely omitted.

This saves 52 bytes when compiled for Thumb.

Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
2026-04-15 15:35:27 +10:00
..