Vectorized CLZ and CTZ

purplesyringa.moe

33 points by zX41ZdbW a day ago


wahern - 2 hours ago

Pretty cool that they seemed to have come up with the idea on their own, but they're definitely not the first: https://graphics.stanford.edu/~seander/bithacks.html#ZerosOn...

jandrewrogers - 4 hours ago

This is a good illustration of what competent SIMD code requires.

saagarjha - 4 hours ago

Might be useful on a GPU or something I guess?