]> Cypherpunks repositories - gostls13.git/commit
math: speed up Log on amd64
authorIlya Tocar <ilya.tocar@intel.com>
Tue, 28 Mar 2017 19:09:28 +0000 (14:09 -0500)
committerIlya Tocar <ilya.tocar@intel.com>
Wed, 29 Mar 2017 20:36:29 +0000 (20:36 +0000)
commit4f579cc65bfedca93ad00f9c5eb138c4a785a4ad
treedd0b491b58e574a25b67ab5a8e32bbebe99c2a8c
parent41fd8d6401b6702b801678a493001ec9e08d6f2d
math: speed up Log on amd64

After https://golang.org/cl/31490 we break false
output dependency for CVTS.. in compiler generated code.
I've looked through asm code, which uses CVTS..
and added XOR to the only case where it affected performance.

Log-6                  21.6ns ± 0%  19.9ns ± 0%  -7.87%  (p=0.000 n=10+10)

Change-Id: I25d9b405e3041a3839b40f9f9a52e708034bb347
Reviewed-on: https://go-review.googlesource.com/38771
Run-TryBot: Ilya Tocar <ilya.tocar@intel.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/math/log_amd64.s