Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
638ef079
Commit
638ef079
authored
May 21, 2010
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bignum: deprecate by moving into exp directory
R=rsc CC=golang-dev
https://golang.org/cl/1211047
parent
e3bfeec4
Changes
18
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
23 additions
and
13 deletions
+23
-13
src/pkg/Makefile
src/pkg/Makefile
+1
-1
src/pkg/exp/bignum/Makefile
src/pkg/exp/bignum/Makefile
+3
-3
src/pkg/exp/bignum/arith.go
src/pkg/exp/bignum/arith.go
+0
-0
src/pkg/exp/bignum/arith_amd64.s
src/pkg/exp/bignum/arith_amd64.s
+0
-0
src/pkg/exp/bignum/bignum.go
src/pkg/exp/bignum/bignum.go
+0
-0
src/pkg/exp/bignum/bignum_test.go
src/pkg/exp/bignum/bignum_test.go
+10
-0
src/pkg/exp/bignum/integer.go
src/pkg/exp/bignum/integer.go
+0
-0
src/pkg/exp/bignum/nrdiv_test.go
src/pkg/exp/bignum/nrdiv_test.go
+0
-0
src/pkg/exp/bignum/rational.go
src/pkg/exp/bignum/rational.go
+0
-0
src/pkg/exp/eval/eval_test.go
src/pkg/exp/eval/eval_test.go
+1
-1
src/pkg/exp/eval/expr.go
src/pkg/exp/eval/expr.go
+1
-1
src/pkg/exp/eval/expr1.go
src/pkg/exp/eval/expr1.go
+1
-1
src/pkg/exp/eval/expr_test.go
src/pkg/exp/eval/expr_test.go
+1
-1
src/pkg/exp/eval/stmt.go
src/pkg/exp/eval/stmt.go
+1
-1
src/pkg/exp/eval/type.go
src/pkg/exp/eval/type.go
+1
-1
src/pkg/exp/eval/util.go
src/pkg/exp/eval/util.go
+1
-1
src/pkg/exp/eval/value.go
src/pkg/exp/eval/value.go
+1
-1
test/hilbert.go
test/hilbert.go
+1
-1
No files found.
src/pkg/Makefile
View file @
638ef079
...
...
@@ -23,7 +23,6 @@ DIRS=\
archive/tar
\
asn1
\
big
\
bignum
\
bufio
\
bytes
\
cmath
\
...
...
@@ -64,6 +63,7 @@ DIRS=\
encoding/hex
\
encoding/pem
\
exec
\
exp/bignum
\
exp/datafmt
\
exp/draw
\
exp/eval
\
...
...
src/pkg/bignum/Makefile
→
src/pkg/
exp/
bignum/Makefile
View file @
638ef079
...
...
@@ -2,13 +2,13 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
include
../../Make.$(GOARCH)
include
../../
../
Make.$(GOARCH)
TARG
=
bignum
TARG
=
exp/
bignum
GOFILES
=
\
arith.go
\
bignum.go
\
integer.go
\
rational.go
\
include
../../Make.pkg
include
../../
../
Make.pkg
src/pkg/bignum/arith.go
→
src/pkg/
exp/
bignum/arith.go
View file @
638ef079
File moved
src/pkg/bignum/arith_amd64.s
→
src/pkg/
exp/
bignum/arith_amd64.s
View file @
638ef079
File moved
src/pkg/bignum/bignum.go
→
src/pkg/
exp/
bignum/bignum.go
View file @
638ef079
File moved
src/pkg/bignum/bignum_test.go
→
src/pkg/
exp/
bignum/bignum_test.go
View file @
638ef079
...
...
@@ -331,6 +331,16 @@ func TestNatDiv(t *testing.T) {
for
i
:=
uint
(
0
);
i
<
n
;
i
++
{
nat_eq
(
100
+
i
,
p
.
Div
(
MulRange
(
1
,
i
)),
MulRange
(
i
+
1
,
n
))
}
// a specific test case that exposed a bug in package big
test_msg
=
"NatDivC"
x
:=
natFromString
(
"69720375229712477164533808935312303556800"
,
10
,
nil
)
y
:=
natFromString
(
"3099044504245996706400"
,
10
,
nil
)
q
:=
natFromString
(
"22497377864108980962"
,
10
,
nil
)
r
:=
natFromString
(
"0"
,
10
,
nil
)
qc
,
rc
:=
x
.
DivMod
(
y
)
nat_eq
(
0
,
q
,
qc
)
nat_eq
(
1
,
r
,
rc
)
}
...
...
src/pkg/bignum/integer.go
→
src/pkg/
exp/
bignum/integer.go
View file @
638ef079
File moved
src/pkg/bignum/nrdiv_test.go
→
src/pkg/
exp/
bignum/nrdiv_test.go
View file @
638ef079
File moved
src/pkg/bignum/rational.go
→
src/pkg/
exp/
bignum/rational.go
View file @
638ef079
File moved
src/pkg/exp/eval/eval_test.go
View file @
638ef079
...
...
@@ -5,7 +5,7 @@
package
eval
import
(
"bignum"
"
exp/
bignum"
"flag"
"fmt"
"log"
...
...
src/pkg/exp/eval/expr.go
View file @
638ef079
...
...
@@ -5,7 +5,7 @@
package
eval
import
(
"bignum"
"
exp/
bignum"
"fmt"
"go/ast"
"go/token"
...
...
src/pkg/exp/eval/expr1.go
View file @
638ef079
...
...
@@ -4,7 +4,7 @@
package
eval
import
(
"bignum"
"
exp/
bignum"
"log"
)
...
...
src/pkg/exp/eval/expr_test.go
View file @
638ef079
...
...
@@ -5,7 +5,7 @@
package
eval
import
(
"bignum"
"
exp/
bignum"
"testing"
)
...
...
src/pkg/exp/eval/stmt.go
View file @
638ef079
...
...
@@ -5,7 +5,7 @@
package
eval
import
(
"bignum"
"
exp/
bignum"
"log"
"go/ast"
"go/token"
...
...
src/pkg/exp/eval/type.go
View file @
638ef079
...
...
@@ -5,7 +5,7 @@
package
eval
import
(
"bignum"
"
exp/
bignum"
"go/ast"
"go/token"
"log"
...
...
src/pkg/exp/eval/util.go
View file @
638ef079
...
...
@@ -5,7 +5,7 @@
package
eval
import
(
"bignum"
"
exp/
bignum"
)
// TODO(austin): Maybe add to bignum in more general form
...
...
src/pkg/exp/eval/value.go
View file @
638ef079
...
...
@@ -5,7 +5,7 @@
package
eval
import
(
"bignum"
"
exp/
bignum"
"fmt"
)
...
...
test/hilbert.go
View file @
638ef079
...
...
@@ -10,7 +10,7 @@
package
main
import
Big
"bignum"
import
Big
"
exp/
bignum"
import
Fmt
"fmt"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment