interrupt: various cleanups and small speedups (no functional changes)
interrupt: various cleanups and small speedups (no functional changes)

DragonMinded/libdragon,DragonMinded/libdragon,sp1187/libdragon,sp1187/libdragon,sp1187/libdragon,DragonMinded/libdragon