diff options
| author | Lynn Boger <laboger@linux.vnet.ibm.com> | 2016-02-16 12:24:12 -0600 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-03-10 15:01:21 +0000 |
| commit | b4b2ddb86771753aebd4383847e708cb61e94c73 (patch) | |
| tree | d31608c0577446bba57946f08db81a6d0093a353 /src/bytes/buffer.go | |
| parent | 6cb2e1d015b87f4627f40d7b208b58ecb4e102e1 (diff) | |
| download | go-b4b2ddb86771753aebd4383847e708cb61e94c73.tar.xz | |
math: improve sqrt for ppc64le,ppc64
The existing implementation uses code written in Go to
implement Sqrt; this adds the assembler to use the sqrt
instruction for Power and makes the necessary changes to
allow it to be inlined.
The following tests showed this relative improvement:
benchmark delta
BenchmarkSqrt -97.91%
BenchmarkSqrtIndirect -96.65%
BenchmarkSqrtGo -35.93%
BenchmarkSqrtPrime -96.94%
Fixes #14349
Change-Id: I8074f4dc63486e756587564ceb320aca300bf5fa
Reviewed-on: https://go-review.googlesource.com/19515
Reviewed-by: Minux Ma <minux@golang.org>
Diffstat (limited to 'src/bytes/buffer.go')
0 files changed, 0 insertions, 0 deletions
