]> Cypherpunks repositories - gostls13.git/commit
math: use portable Exp instead of 387 instructions on 386
authorRuss Cox <rsc@golang.org>
Tue, 4 Oct 2016 02:33:49 +0000 (22:33 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 5 Oct 2016 03:53:11 +0000 (03:53 +0000)
commitaab849e4297d60918602355a0335cc7b3ca4c5f2
treeae2c8e5450d3a326716b602586520b6aa5e75d0c
parent84743c348b0a4a7ed1ea3d7122feb757ccc7ebae
math: use portable Exp instead of 387 instructions on 386

The 387 implementation is less accurate and slower.

name     old time/op  new time/op  delta
Exp-8    29.7ns ± 2%  24.0ns ± 2%  -19.08%  (p=0.000 n=10+10)

This makes Gamma more accurate too.

Change-Id: Iad33b9cce0b087ccbce3e08ba7a6d285c4999d02
Reviewed-on: https://go-review.googlesource.com/30230
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Quentin Smith <quentin@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/math/all_test.go
src/math/exp_386.s