Need for (C++20) Contiguous Range

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Fri Oct 9 14:08:46 UTC 2020


On Friday, 9 October 2020 at 13:55:19 UTC, Ola Fosheim Grøstad 
wrote:
> Ok, so then you have a filter than will return every other 
> element, then you get the same slices, but a different mask 
> pattern:
>
> 00001010 10101010 10100000

I meant if you want to add a filter that returns every other 
element then you just do a bitwise and with 10101010 on the mask.

You can do the same with conditionals. E.g. you can get the signs 
of all the elements in the SIMD register as a bitmask.



More information about the Digitalmars-d mailing list