mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +00:00
go fmt
This commit is contained in:
parent
adf6119e88
commit
66425aa070
1 changed files with 31 additions and 30 deletions
|
|
@ -438,8 +438,9 @@ func berlinMultComplexity(x uint64) *uint256.Int {
|
|||
// TODO: if x > 2^64 - 7
|
||||
ceilDiv8 := (x >> 3) + ((x&7 + 7) >> 3) // safe ceil(x / 8)
|
||||
z := new(uint256.Int).SetUint64(ceilDiv8)
|
||||
return new(uint256.Int).Mul(z, z) // square without overflow
|
||||
return new(uint256.Int).Mul(z, z) // square without overflow
|
||||
}
|
||||
|
||||
// Slow Bigint way (benchmark this)
|
||||
// func berlinMultComplexity(xInt uint64) *big.Int {
|
||||
// x := new(big.Int).SetUint64(xInt)
|
||||
|
|
|
|||
Loading…
Reference in a new issue