in reply to Re: [OT] Swapping buffers in place.
in thread [OT] Swapping buffers in place.

Seems I found the same independently 1118280. I like your modulus calculation to find the next loaction.