estarriolvetch / solidity-bits

MIT License
33 stars 4 forks source link

isolateMS1B256 question #1

Closed sillytuna closed 2 years ago

sillytuna commented 2 years ago

Is bb |= bb >> 256 required? Doesn't it just equate to bb |= 0?

Or am I being dumb...

estarriolvetch commented 2 years ago

@sillytuna I think you are right!

sillytuna commented 2 years ago

Unrelated but I'm going to look at shifting the two classes to yul and checking gas use differences.