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

Use std::countl to compute floor(log2(_Rx)) faster #4139

Closed
wants to merge 1 commit into from

Conversation

AZero13
Copy link
Contributor

@AZero13 AZero13 commented Nov 1, 2023

This is faster than looping through the bits manually.

@AZero13 AZero13 requested a review from a team as a code owner November 1, 2023 18:53
@frederick-vs-ja
Copy link
Contributor

See also #4017 (comment).

It seems that we should at least file an issue to determine whether we should create internal function(s) equivalent to bit_floor and/or bit_width.

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