Fix defining prev/next power of 2