aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/math/bits.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2011-09-29 09:54:20 -0700
committerRob Pike <r@golang.org>2011-09-29 09:54:20 -0700
commit1a13f9b810bc5ba43aa9786d06a0d06a58f1e110 (patch)
tree5a880ceea30332920cd1fe2d30c915ae214e7ab8 /src/pkg/math/bits.go
parent61cc8728fbf52dbe5e76cea19aac8b87d2173174 (diff)
downloadgo-1a13f9b810bc5ba43aa9786d06a0d06a58f1e110.tar.xz
math: remove the leading F from Fabs etc.
The letter is a holdover from C and unnecessary in Go. Gofix module included. Fixes #2306. R=golang-dev, gri, dsymonds CC=golang-dev https://golang.org/cl/5158043
Diffstat (limited to 'src/pkg/math/bits.go')
-rw-r--r--src/pkg/math/bits.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/math/bits.go b/src/pkg/math/bits.go
index a1dca3ed69..1cf60ce7df 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