Logic does handle non-power-of-two sizes