diff options
author | Russ Cox <rsc@golang.org> | 2009-08-12 13:19:17 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-08-12 13:19:17 -0700 |
commit | 2ee4549f599ed214693abf75163176f178b4188c (patch) | |
tree | c9dbc55a8447806706f8ae757a04c3c41b815835 /src/pkg/bignum/integer.go | |
parent | 5ff5b6823c8a023da5c9d6ccc2effe7fad8447f6 (diff) | |
download | golang-2ee4549f599ed214693abf75163176f178b4188c.tar.gz |
convert non-low-level non-google pkg code
to whole-package compilation.
R=r
OCL=33070
CL=33101
Diffstat (limited to 'src/pkg/bignum/integer.go')
-rw-r--r-- | src/pkg/bignum/integer.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pkg/bignum/integer.go b/src/pkg/bignum/integer.go index 30e13092f..35a95bb3c 100644 --- a/src/pkg/bignum/integer.go +++ b/src/pkg/bignum/integer.go @@ -10,7 +10,6 @@ package bignum import ( - "bignum"; "fmt"; ) @@ -352,7 +351,7 @@ func (x *Integer) Shr(s uint) *Integer { // (-x) >> s == ^(x-1) >> s == ^((x-1) >> s) == -(((x-1) >> s) + 1) return MakeInt(true, x.mant.Sub(Nat(1)).Shr(s).Add(Nat(1))); } - + return MakeInt(false, x.mant.Shr(s)); } |