Improved ROUNDUP2POW portability