Check for power of two number of registers correctly