commit | 976e45726caf41246549173f87c7f0ded148d31c | [log] [tgz] |
---|---|---|
author | Eoghan Sherry <ejsherry@gmail.com> | Wed Dec 15 13:20:52 2010 -0500 |
committer | Russ Cox <rsc@golang.org> | Wed Dec 15 13:20:52 2010 -0500 |
tree | 43f0ce63e6c2847d5597e2bfad90ff072984a53f | |
parent | eedf5c452974fc518bd6ec385730b61f016ddadf [diff] [blame] |
math: change float64 bias constant from 1022 to 1023 This makes some subtle code easier to understand. R=rsc CC=golang-dev https://golang.org/cl/3444043
diff --git a/src/pkg/math/bits.go b/src/pkg/math/bits.go index d36cd18..1a97e76 100644 --- a/src/pkg/math/bits.go +++ b/src/pkg/math/bits.go
@@ -10,7 +10,7 @@ uvneginf = 0xFFF0000000000000 mask = 0x7FF shift = 64 - 11 - 1 - bias = 1022 + bias = 1023 ) // Inf returns positive infinity if sign >= 0, negative infinity if sign < 0.