Re:GodBolt: Enter C, get Assembly
by AstralStorm on Thursday December 15, 2016 @04:36AM
(#13183461)
The latter is generally not faster on most modern chips. Results in similar microcode to non vectoring assembly, but you need to put data in the SSE registers which is not free.
A smart compiler would not use the new SSE version. (perhaps you didn't set the flags right?)
A smart compiler would not use the new SSE version. (perhaps you didn't set the flags right?)
This is why: http://0x80.pl/articles/sse-popcount.html