Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
gpderetta
on Sept 9, 2019
|
parent
|
context
|
favorite
| on:
Popcount CPU instruction
in c++20 you can use
if constexpr(std::is_constant_evaluated()) { // hand coded implementation } else { // use builtin }
but yes, it is annoying.
Consider applying for YC's W25 batch! Applications are open till Nov 12.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: