Well, it's only raising it if it's smaller than the max.  But sure, `roundUpToNextPowerOf2` is fine.