On Sunday, 25 October 2015 at 19:37:32 UTC, Iakh wrote: > Is it optimal and how do you implement this stuf? > I think it's better to use PMOVMSKB to avoid storing the PCMPEQB result in memory and you need only one BSF instruction.