]> Cypherpunks repositories - gostls13.git/commit
math: fix Log2 test failures on ppc64 (and s390)
authorRuss Cox <rsc@golang.org>
Wed, 15 Jul 2015 02:42:16 +0000 (22:42 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 15 Jul 2015 05:35:22 +0000 (05:35 +0000)
commitbed6326a3c04811f394490b537c07c863b3df6de
treeb53cdb3dd47ec17c1376ad0f8cde889d4838982c
parent671bddf0b0a1146279dd5c921a1a34e25d16a1ae
math: fix Log2 test failures on ppc64 (and s390)

- Make Log2 exact for powers of two.
- Fix error tolerance function to make tolerance
  a function of the correct (expected) value.

Fixes #9066.

Change-Id: I0320a93ce4130deed1c7b7685627d51acb7bc56d
Reviewed-on: https://go-review.googlesource.com/12230
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/math/all_test.go
src/math/log10.go