1 comment

[ 3.3 ms ] story [ 16.7 ms ] thread
Some time ago I wrote an implementation for Gray code decoding that made use of the POPCNT and PDEP CPU instructions. I thought it was interesting and I wrote up a short article on the topic. I will gladly answer any questions.