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

Replace BitUtils with C++20: Counting Zeroes #11130

Merged
merged 1 commit into from Dec 22, 2022

Conversation

Minty-Meeo
Copy link
Member

@Minty-Meeo Minty-Meeo commented Oct 7, 2022

With the upgrade to C++20, std::countl_zero and std::countr_zero can replace these home-spun implementations from the BitUtil.h library.

@Minty-Meeo
Copy link
Member Author

I thought this was already a PR, but I could not find one like it. This pull-requrest is a companion to #10950 and #10957.

@Minty-Meeo Minty-Meeo changed the title Replace BitUtils with C++20: CountLeadingZeros Replace BitUtils with C++20: Counting Zeroes Oct 7, 2022
@Minty-Meeo
Copy link
Member Author

Found a use for countl_one in VideoCommon.h. I don't think there is anything else to consider?

With the upgrade to C++20, std::countl_zero and std::countr_zero can replace these home-spun implementations from the BitUtil.h library.
@delroth delroth merged commit 5b63f9a into dolphin-emu:master Dec 22, 2022
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants