FIAS . Impressum . Privacy

foreach_bit

Kulakov, Igor [please enable javascript to see the address]
Thu Aug 9 22:32:27 CEST 2012


Is this possible to break foreach_bit() like any other loop?

I mean something like:

 float_v a = ...;
 Vc_foreach_bit(int i, a < 0.f) {
   std::cout << a[i] << "\n";
   if (a[i] > 0) break;
 }


FYI:
I haven't found the answer in the documentation: http://code.compeng.uni-frankfurt.de/docs/Vc-0.6/group__Utilities.html#gac915a9bb47c44669503fa6c6ca912a7d
but looking on the result I suppose that usual brake doesn't work. Meanwhile I didn't get any error or warning.




Regards,
Igor


More information about the Vc mailing list
FIAS . Impressum . Privacy