improve fmprb_log (slight speedup, detect powers of two, support large exponents)