Re: Why there isn't a three foreach loop?

2020-05-22 Thread Gabriel Alves Cunha
Oh, goody. Thanks!!! I went back to the documentation and I see now that I've misread it... Em sexta-feira, 22 de maio de 2020 15:40:42 UTC-3, Dmitry Babokin escreveu: > > We have it, for example here: > https://github.com/ispc/ispc/blob/master/examples/aobench/ao.ispc#L216 > > Note, that tiled

Why there isn't a three foreach loop?

2020-05-22 Thread Gabriel Alves Cunha
for (int i = 0; i <= isize; ++i) foreach (j = 0 ... jsize, k = 0 ... ksize) if (foo()) *bar();* foreach (i = 0 ... isize, j = 0 ... jsize, k = 0 ... ksize) if (foo()) *bar();* -- You received this message because you are subscribed to the

Re: Why there isn't a three foreach loop?

2020-05-22 Thread Dmitry Babokin
We have it, for example here: https://github.com/ispc/ispc/blob/master/examples/aobench/ao.ispc#L216 Note, that tiled version is not much different. If you remove "_tiled" it will work as well. If you are asking why writing the former version, not the later, it yields different code sequence.