Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proposal: math/big: Int.TrailingZeroBits #29578

Closed
TuomLarsen opened this Issue Jan 5, 2019 · 3 comments

Comments

Projects
None yet
4 participants
@TuomLarsen
Copy link

TuomLarsen commented Jan 5, 2019

Please consider exposing the nat.trailingZeroBits method, for example as Int.TrailingZeroBits, in addition to Int.BitLen. Similar to math.bits, knowing the length in bits is as useful as counting number of trailing zeros.

@gopherbot gopherbot added this to the Proposal milestone Jan 5, 2019

@gopherbot gopherbot added the Proposal label Jan 5, 2019

@rsc

This comment has been minimized.

Copy link
Contributor

rsc commented Jan 9, 2019

Seems reasonable; @griesemer agrees.

@rsc rsc modified the milestones: Proposal, Go1.13 Jan 9, 2019

@gopherbot

This comment has been minimized.

Copy link

gopherbot commented Feb 1, 2019

Change https://golang.org/cl/160681 mentions this issue: math/big: implement Int.TrailingZeroBits

@gopherbot gopherbot closed this in ef891e1 Mar 12, 2019

@TuomLarsen

This comment has been minimized.

Copy link
Author

TuomLarsen commented Mar 12, 2019

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.