add BigInt prevpow2/nextpow2 (fix #4814)
Merge pull request #4820 from stevengj/nextpow2

add BigInt prevpow2/nextpow2 (fix #4814)