perfs: avoid using int div (%) for wrapping buffers
Authored by: "Jean-Francois Dockes ext:(%22) 2011-08-21
Parent(s): [9cefcb]
Child(ren): [44e6c8]