Useful macros for working with arrays and save your precious sram