Skip to content

Conversation

zhedazijingang
Copy link

replace customized bit sizer with bit.Uintsize

Inspired by https://github.com/ethereum/go-ethereum/pulls?q=bit.Uintsize

@zhedazijingang
Copy link
Author

friendly ping~

@pkieltyka
Copy link
Member

Thanks for the PR. What’s the advantage?

@zhedazijingang
Copy link
Author

Thanks for the PR. What’s the advantage?

This change can omit the line const uintBits = 32 << (uint64(^uint(0)) >> 63) and use the built-in constant instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants