llvm-project
5b9b25b9
- [libc++][NFC] Use std::has_single_bit instead of std::popcount(v) == 1 (#181787)
Go
Login via GitHub
Home
Pricing
FAQ
Install
Login
via GitHub
Commit
View On
GitHub
Commit
5 days ago
[libc++][NFC] Use std::has_single_bit instead of std::popcount(v) == 1 (#181787) We have a function that specifically checks if a single bit is set. Use that instad of a `popcount`.
References
#181787 - [libc++][NFC] Use std::has_single_bit instead of std::popcount(v) == 1
Author
philnik777
Parents
61fa74b8
Loading