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
Closed

proposal: math/big: Int.TrailingZeroBits #29578

TuomLarsen opened this issue Jan 5, 2019 · 3 comments
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. Proposal Proposal-Accepted
Milestone

Comments

@TuomLarsen
Copy link

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
@rsc
Copy link
Contributor

rsc commented Jan 9, 2019

Seems reasonable; @griesemer agrees.

@rsc rsc modified the milestones: Proposal, Go1.13 Jan 9, 2019
@ianlancetaylor ianlancetaylor added the NeedsFix The path to resolution is known, but the work has not been done. label Jan 9, 2019
@gopherbot
Copy link

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

@TuomLarsen
Copy link
Author

Thank you!

@golang golang locked and limited conversation to collaborators Mar 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done. Proposal Proposal-Accepted
Projects
None yet
Development

No branches or pull requests

4 participants