functions for handling cpu lists, hexmasks, reversed bitmasks, and printing some irq info