JuliaLang/julia — pull request #4820 by stevengj (2013-11-15 17:47:54+00:00)
Title: add BigInt prevpow2/nextpow2 (fix #4814)

Implemented in terms of `ndigits(2,x)`, which is documented to give the most-significant-bit in GMP.