math: handle exponent separately in Log2
This guarantees that powers of two return exact answers. We could do a multiprecision approximation for the rest of the answer too, but this seems like it should be good enough. Fixes #4567. R=golang-dev, iant, remyoudompheng CC=golang-dev https://golang.org/cl/6943074
Showing
Please register or sign in to comment