1 comment

[ 2783 ms ] story [ 82.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.