Update exp.go

This commit is contained in:
Péter Szilágyi 2016-11-02 13:42:39 +02:00 committed by GitHub
parent 2c39462828
commit ab18edbedc

View file

@ -6,7 +6,7 @@ import (
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"
) )
// wordSize is the size number of bytes in a big.Int Word. // wordSize is the size number of bits in a big.Int Word.
const wordSize = 32 << (uint64(^big.Word(0))>>63) const wordSize = 32 << (uint64(^big.Word(0))>>63)
// Exp implement exponentiation by squaring algorithm. // Exp implement exponentiation by squaring algorithm.