simd comparison operator?

bearophile bearophileHUGS at lycos.com
Sun Mar 3 05:39:53 PST 2013


Manu:

> If you want to do component-wise logic,
> the typical approach is to use component-wise selection, eg:
>   uint4 mask = compareGreater(a, b); // <- build a bit mask of 
> 0's (false)

Isn't something like this better?

uint4 mask = a > b;

Bye,
bearophile


More information about the Digitalmars-d mailing list