summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/machine_pin.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-06-22 15:05:58 +1000
committerDamien George <damien.p.george@gmail.com>2017-06-22 15:05:58 +1000
commitd94bc675e8f3bcf37acf2d88d7c0ce0d9de68672 (patch)
tree3bead087b6fcecaeb836adf1055e9029e7f763e2 /esp8266/machine_pin.c
parent44922934f55cb1cb8a64eba4afabb66563d66349 (diff)
downloadmicropython-d94bc675e8f3bcf37acf2d88d7c0ce0d9de68672.tar.gz
micropython-d94bc675e8f3bcf37acf2d88d7c0ce0d9de68672.zip
py/compile: Optimise emitter label indices to save a word of heap.
Previous to this patch, a label with value "0" was used to indicate an invalid label, but that meant a wasted word (at slot 0) in the array of label offsets. This patch adjusts the label indices so the first one starts at 0, and the maximum value indicates an invalid label.
Diffstat (limited to 'esp8266/machine_pin.c')
0 files changed, 0 insertions, 0 deletions