]> Cypherpunks repositories - gostls13.git/commit
math: replace assembly implementations of Abs with pure Go version
authorBrad Fitzpatrick <bradfitz@golang.org>
Thu, 29 Oct 2015 15:13:58 +0000 (15:13 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 29 Oct 2015 19:44:59 +0000 (19:44 +0000)
commit6f8a66536b04885d5e5e8480e64bea9c0b417dce
treeee0ae13531e6cf2ad9a84793551c916f982327d2
parent51586aadfbc3632a6829b0d72aa433952165d650
math: replace assembly implementations of Abs with pure Go version

The compiler can do a fine job, and can also inline it.

From Jeremy Jackins's observation and rsc's recommendation in thread:

"Pure Go math.Abs outperforms assembly version"
https://groups.google.com/forum/#!topic/golang-dev/nP5mWvwAXZo

Updates #13095

Change-Id: I3066f8eaa327bb403173b29791cc8661d7c0532c
Reviewed-on: https://go-review.googlesource.com/16444
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/math/abs.go
src/math/abs_386.s [deleted file]
src/math/abs_amd64.s [deleted file]
src/math/abs_amd64p32.s [deleted file]
src/math/abs_arm.s [deleted file]
src/math/abs_arm64.s [deleted file]
src/math/abs_ppc64x.s [deleted file]