]> Cypherpunks repositories - gostls13.git/commit
math: faster hypot
authorCharles L. Dorian <cldorian@gmail.com>
Sat, 6 Mar 2010 00:45:39 +0000 (16:45 -0800)
committerRuss Cox <rsc@golang.org>
Sat, 6 Mar 2010 00:45:39 +0000 (16:45 -0800)
commit067fe2840bc7d30be4f790608c4fbb331ac90bd6
tree7dc368b238f1b43f79fc87909493dd06fdbdd3f5
parentac499ed7a5b51b270815cf6aae05cce936dd53a1
math: faster hypot

Use hardware sqrt for faster hypot; preserve software-only
hypot as hypotGo (like sqrtGo); enable benchmarking of
hypotGo.

R=rsc
CC=golang-dev
https://golang.org/cl/229049
src/pkg/math/Makefile
src/pkg/math/all_test.go
src/pkg/math/hypot.go
src/pkg/math/hypot_port.go [new file with mode: 0644]
src/pkg/math/hypot_test.go [new file with mode: 0644]