add __restrict__ markup to loop pointers

helps auto-vec

also remove a couple of if()s from inner loops, again, helps auto-vec
sync