summaryrefslogtreecommitdiff
path: root/src/pkg/math/bits.go
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2012-01-30 15:38:19 +0100
committerOndřej Surý <ondrej@sury.org>2012-01-30 16:31:40 +0100
commit3e609a8872e69b2df7447de5f308a5d4340f1cbf (patch)
treef49969bc8ba81dd1d3869bd6747ca8b8b7d403fc /src/pkg/math/bits.go
parente0329b098725bc398083bfb04691a257d8ee6a25 (diff)
downloadgolang-3e609a8872e69b2df7447de5f308a5d4340f1cbf.tar.gz
Imported Upstream version 2012.01.27
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 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