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

Alternative way to optimize _Countr_zero #2343

Merged
merged 14 commits into from
Jan 22, 2022

Conversation

AlexGuteniev
Copy link
Contributor

Do stuff like _Select_popcount_impl.

Resolves #2292 a bit more efficient than #2298

stl/inc/limits Outdated Show resolved Hide resolved
stl/inc/limits Outdated Show resolved Hide resolved
stl/inc/limits Outdated Show resolved Hide resolved
stl/inc/numeric Outdated Show resolved Hide resolved
stl/inc/limits Outdated Show resolved Hide resolved
stl/inc/limits Show resolved Hide resolved
stl/inc/limits Outdated Show resolved Hide resolved
stl/inc/limits Outdated Show resolved Hide resolved
@StephanTLavavej StephanTLavavej self-assigned this Dec 18, 2021
@StephanTLavavej

This comment has been minimized.

@StephanTLavavej StephanTLavavej removed their assignment Dec 18, 2021
@StephanTLavavej
Copy link
Member

I've pushed a merge with main to resolve a simple conflict in <numeric> (where clang-format 13 had removed a space). I diffed <numeric> before and after this merge, and there are no changes to this PR's content except for the clang-format changes.

@StephanTLavavej StephanTLavavej self-assigned this Jan 21, 2022
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit 51ad398 into microsoft:main Jan 22, 2022
@StephanTLavavej
Copy link
Member

Thanks for improving the performance of this function with clear, maintainable code! 🚀 🎉 😻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Must go faster
Projects
None yet
Development

Successfully merging this pull request may close these issues.

<numeric>: _Countr_zero used by std::gcd has unnecessary zero checks
4 participants