On 25 Oct 2015 11:50 pm, "Iakh via Digitalmars-d" < [email protected]> wrote: > > On Sunday, 25 October 2015 at 22:17:58 UTC, Matthias Bentrup wrote: >> >> 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. > > > Yeah but PMOVMSKB not implemented in core.simd. >
Don't use core.simd, push for getting std.simd in, then leverage the generics exposed through that module.
