By: anon (anon.delete@this.anon.com),
Room: Moderated Discussions
Eric Bron (eric.bron.delete@this.zvisuel.privatefortest.com) on April 11, 2013 11:27 am wrote:
> > Do not prefetch 1600 bytes past the end of an array.
>
> it will require two loops so pretty much double the size of your code
This might be a stupid question, but why can't you just replace instances of `prefetch(mem + idx)` with `if (idx < size) prefetch(mem + idx)`?
> > Do not prefetch 1600 bytes past the end of an array.
>
> it will require two loops so pretty much double the size of your code
This might be a stupid question, but why can't you just replace instances of `prefetch(mem + idx)` with `if (idx < size) prefetch(mem + idx)`?



