Paul, + if (reverse_loop) + { + tmp = loop->from[n]; + loop->from[n] = loop->to[n]; + loop->to[n] = tmp; + } Shouldn't you negate the stride here? Cheers Dominique