4 ms·
autovectorization is hit and miss. I recently wrote this which has to count the bits in a result mask of vector operations and it turns into popcnt just fine.
by the8472 3y ago
autovectorization is hit and miss. I recently wrote this which has to count the bits in a result mask of vector operations and it turns into popcnt just fine.
https://godbolt.org/z/zT9Whcnco https://godbolt.org/z/zT9Whcnco