There are a lot of potential use cases, but one of the early discussions was around quickly scanning for known HTTP headers. You can see that in use here: https://github.com/aspnet/AspNetCore/blob/caa910ceeba5f2b2c0...
If you really need help falling asleep, here's the discussion going back to 2015: https://github.com/dotnet/corefx/issues/2209
Disclaimers: Microsoft employee, Nazgûl
It would be nice to get bitscanforward/reverse too.
I created this library long ago to get popcnt on desktop .net: https://github.com/omgtehlion/netintrinsics
Blog post with more details (in Russian): https://m.habr.com/ru/post/239619/
EDIT: found lzcnt/tzcnt on a linked page, thanks! But what about bswap or I'm asking too much? ))
There are a lot of potential use cases, but one of the early discussions was around quickly scanning for known HTTP headers. You can see that in use here: https://github.com/aspnet/AspNetCore/blob/caa910ceeba5f2b2c0...
If you really need help falling asleep, here's the discussion going back to 2015: https://github.com/dotnet/corefx/issues/2209
Disclaimers: Microsoft employee, Nazgûl