From 3623b61ba2f99fd9d86231f316f42bafa17aa160 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Thu, 29 Sep 2011 09:54:20 -0700 Subject: math: remove the leading F from Fabs etc. The letter is a holdover from C and unnecessary in Go. Gofix module included. Fixes issue 2306. R=golang-dev, gri, dsymonds CC=golang-dev http://codereview.appspot.com/5158043 --- src/pkg/math/bits.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pkg/math/bits.go') diff --git a/src/pkg/math/bits.go b/src/pkg/math/bits.go index a1dca3ed6..1cf60ce7d 100644 --- a/src/pkg/math/bits.go +++ b/src/pkg/math/bits.go @@ -52,7 +52,7 @@ func IsInf(f float64, sign int) bool { // satisfying x == y × 2**exp. It assumes x is finite and non-zero. func normalize(x float64) (y float64, exp int) { const SmallestNormal = 2.2250738585072014e-308 // 2**-1022 - if Fabs(x) < SmallestNormal { + if Abs(x) < SmallestNormal { return x * (1 << 52), -52 } return x, 0 -- cgit v1.2.1