It wasn't clear from the context, and this only works as long as it's a power of 2