Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
360c66c6
Commit
360c66c6
authored
Mar 22, 2015
by
Taylor Gerring
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move Big* vars to big.go
parent
2477d10a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
14 deletions
+13
-14
big.go
common/big.go
+13
-0
common.go
common/common.go
+0
-14
No files found.
common/big.go
View file @
360c66c6
...
...
@@ -2,6 +2,19 @@ package common
import
"math/big"
// Common big integers often used
var
(
Big1
=
big
.
NewInt
(
1
)
Big2
=
big
.
NewInt
(
2
)
Big3
=
big
.
NewInt
(
3
)
Big0
=
big
.
NewInt
(
0
)
BigTrue
=
Big1
BigFalse
=
Big0
Big32
=
big
.
NewInt
(
32
)
Big256
=
big
.
NewInt
(
0xff
)
Big257
=
big
.
NewInt
(
257
)
)
// Big pow
//
// Returns the power of two big integers
...
...
common/common.go
View file @
360c66c6
...
...
@@ -2,23 +2,9 @@ package common
import
(
"fmt"
"math/big"
"time"
)
// Common big integers often used
var
(
Big1
=
big
.
NewInt
(
1
)
Big2
=
big
.
NewInt
(
2
)
Big3
=
big
.
NewInt
(
3
)
Big0
=
big
.
NewInt
(
0
)
BigTrue
=
Big1
BigFalse
=
Big0
Big32
=
big
.
NewInt
(
32
)
Big256
=
big
.
NewInt
(
0xff
)
Big257
=
big
.
NewInt
(
257
)
)
func
Bench
(
pre
string
,
cb
func
())
{
start
:=
time
.
Now
()
cb
()
...
...
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