Reuse foundation pow2 functions.