diff options
| author | Ondřej Surý <ondrej@sury.org> | 2012-01-30 15:38:19 +0100 |
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2012-01-30 15:38:19 +0100 |
| commit | 4cecda6c347bd6902b960c6a35a967add7070b0d (patch) | |
| tree | a462e224ff41ec9f3eb1a0b6e815806f9e8804ad /src/pkg/math/hypot.go | |
| parent | 6c7ca6e4d4e26e4c8cbe0d183966011b3b088a0a (diff) | |
| download | golang-4cecda6c347bd6902b960c6a35a967add7070b0d.tar.gz | |
Imported Upstream version 2012.01.27upstream-weekly/2012.01.27
Diffstat (limited to 'src/pkg/math/hypot.go')
| -rw-r--r-- | src/pkg/math/hypot.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pkg/math/hypot.go b/src/pkg/math/hypot.go index ecd115d9e..233257b52 100644 --- a/src/pkg/math/hypot.go +++ b/src/pkg/math/hypot.go @@ -14,7 +14,9 @@ package math // Special cases are: // Hypot(p, q) = +Inf if p or q is infinite // Hypot(p, q) = NaN if p or q is NaN -func Hypot(p, q float64) float64 { +func Hypot(p, q float64) float64 + +func hypot(p, q float64) float64 { // TODO(rsc): Remove manual inlining of IsNaN, IsInf // when compiler does it for us // special cases |
