diff options
| author | Robert Griesemer <gri@golang.org> | 2009-11-09 12:07:39 -0800 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2009-11-09 12:07:39 -0800 |
| commit | e940edc7a026293153ba09ece40e8092a2fc2463 (patch) | |
| tree | c94a425c84b7a48f91a5d76a222effad70c9a88c /src/pkg/math/bits.go | |
| parent | e067f862f1774ab89a2096a88571a94e3b9cd353 (diff) | |
| download | golang-e940edc7a026293153ba09ece40e8092a2fc2463.tar.gz | |
remove semis after statements in one-statement statement lists
R=rsc, r
http://go/go-review/1025029
Diffstat (limited to 'src/pkg/math/bits.go')
| -rw-r--r-- | src/pkg/math/bits.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pkg/math/bits.go b/src/pkg/math/bits.go index 3084ed508..b1bf2da46 100644 --- a/src/pkg/math/bits.go +++ b/src/pkg/math/bits.go @@ -17,9 +17,9 @@ const ( func Inf(sign int) float64 { var v uint64; if sign >= 0 { - v = uvinf; + v = uvinf } else { - v = uvneginf; + v = uvneginf } return Float64frombits(v); } @@ -48,7 +48,7 @@ func IsInf(f float64, sign int) bool { // with the absolute value of frac in the interval [½, 1). func Frexp(f float64) (frac float64, exp int) { if f == 0 { - return; + return } x := Float64bits(f); exp = int((x>>shift)&mask)-bias; @@ -64,11 +64,11 @@ func Ldexp(frac float64, exp int) float64 { x := Float64bits(frac); exp += int(x>>shift)&mask; if exp <= 0 { - return 0; // underflow + return 0 // underflow } if exp >= mask { // overflow if frac < 0 { - return Inf(-1); + return Inf(-1) } return Inf(1); } @@ -94,7 +94,7 @@ func Modf(f float64) (int float64, frac float64) { // Keep the top 11+e bits, the integer part; clear the rest. if e < 64-11 { - x &^= 1<<(64-11-e) - 1; + x &^= 1<<(64-11-e) - 1 } int = Float64frombits(x); frac = f-int; |
