]> Cypherpunks repositories - gostls13.git/commit
math: optimize sinh and cosh
authorerifan01 <eric.fang@arm.com>
Tue, 26 Dec 2017 01:49:37 +0000 (01:49 +0000)
committerRobert Griesemer <gri@golang.org>
Tue, 27 Feb 2018 04:34:37 +0000 (04:34 +0000)
commited6c6c9c11496ed8e458f6e0731103126ce60223
tree8c5950530ceded92d80e39077baa9835c06607de
parent486caa26d7cd40e7aa9b1ca5d1360d093562eef4
math: optimize sinh and cosh

Improve performance by reducing unnecessary function calls

Benchmarks:

Tme    old time/op  new time/op  delta
Cosh-8   229ns ± 0%   138ns ± 0%  -39.74%  (p=0.008 n=5+5)
Sinh-8   231ns ± 0%   139ns ± 0%  -39.83%  (p=0.008 n=5+5)

Change-Id: Icab5485849bbfaafca8429d06b67c558101f4f3c
Reviewed-on: https://go-review.googlesource.com/85477
Reviewed-by: Robert Griesemer <gri@golang.org>
src/math/sinh.go