3 ms·
I wonder if the compiler is smart enough to emit those instructions with the right optimization flags
by Retr0id 2y ago
I wonder if the compiler is smart enough to emit those instructions with the right optimization flags
- badmintonbaseba 2y agoI never saw a compiler generating these instructions on its own. Compilers do produce popcnt and bswap from recognized algorithms, so I guess it's not entirely unreasonable, but I think the benefit would be marginal.