<p dir="ltr">On 25 Oct 2015 11:50 pm, "Iakh via Digitalmars-d" <<a href="mailto:digitalmars-d@puremagic.com">digitalmars-d@puremagic.com</a>> wrote:<br>
><br>
> On Sunday, 25 October 2015 at 22:17:58 UTC, Matthias Bentrup wrote:<br>
>><br>
>> On Sunday, 25 October 2015 at 19:37:32 UTC, Iakh wrote:<br>
>>><br>
>>> Is it optimal and how do you implement this stuf?<br>
>>><br>
>><br>
>> I think it's better to use PMOVMSKB to avoid storing the PCMPEQB result in memory and you need only one BSF instruction.<br>
><br>
><br>
> Yeah but PMOVMSKB not implemented in core.simd.<br>
></p>
<p dir="ltr">Don't use core.simd, push for getting std.simd in, then leverage the generics exposed through that module.</p>