masked loads?
Kay F. Jahnke
[please enable javascript to see the address]
Sat Jul 16 08:38:42 CEST 2016
Hi group!
I'm looking for masked load operations in Vc. It looks like AVX has
them, like _mm_maskload_ps, and it would be nice to find them in Vc -
for symmetry reasons, since it does offer masked stores. My current
workaround is to use a masked gather, but this is ugly:
Vector<something> ( mem , index_type::IndexesFromZero() , mask ) ;
compared to the masked store operation
Vector<something>.store ( mem , mask ) ;
When I tried
Vector<something> ( mem , mask ) ;
This seemed to work, but after some time I noticed that the mask is
misinterpreted as a set of indices for an unmasked gather operation,
resulting in unexpected results.
Or am I missing something?
With regards
Kay
More information about the Vc
mailing list