logoalt Hacker News

Animatsyesterday at 9:11 PM1 replyview on HN

That's neat.

A hard problem in optimization today is trying to fit code into the things complex SSE-type instructions can do. Someone recently posted an example where they'd coded a loop to count the number of one bits in a word, and the compiler generated a "popcount" instruction. That's impressive.


Replies

mattgodboltyesterday at 11:02 PM

It may be a different post, but I covered this earlier this month in the same series of blog posts/YouTube videos.