prusa3d / Prusa-Firmware-MMU

Other
32 stars 15 forks source link

CircularIndex: Fix non-power-of-two sizes #283

Closed wavexx closed 1 year ago

wavexx commented 1 year ago

Add back the option to use CircularIndex even for non-power-of-two sizes for the future.

@gudnimg I didn't check if the assembly is identical to before

gudnimg commented 1 year ago

This PR seems to save 38 bytes of flash memory, nice! :)