mirror of
https://github.com/golang/go
synced 2024-10-05 00:21:21 -06:00
067fe2840b
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
10 lines
275 B
Go
10 lines
275 B
Go
// Copyright 2010 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package math
|
|
|
|
// Make hypotGo available for testing.
|
|
|
|
func HypotGo(x, y float64) float64 { return hypotGo(x, y) }
|