From 360c66c65d546cfbe3d2d910b13377485ba66e1f Mon Sep 17 00:00:00 2001 From: Taylor Gerring Date: Sun, 22 Mar 2015 13:46:38 +0100 Subject: Move Big* vars to big.go --- common/big.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'common/big.go') diff --git a/common/big.go b/common/big.go index 8fe9d8bef..e8057acf6 100644 --- a/common/big.go +++ b/common/big.go @@ -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 -- cgit v1.2.3