eal: add functions for previous power of 2 alignment