I would like to extract the index of the highest set bit in a 256 bit AVX register with 8 bit elements. I could neither find a bsr nor a clz implementation for this.
For clz with 32 bit elements, there is the bithack with a float conversion, but that is probably not possible for 8 bits.
Currently, I am working on a solution, where I check the bits one by one, which I will add later, but I wonder if there is a faster way to do this.