Hi Patrick,
On 03/02/2011 04:15 AM, Patrick Porlan wrote:
That's possible because the size of the ring buffers is always
a power of two, and yields a small performance improvement.
The improvement should be mostly visible on processors that implement
division in microcode (Atom) or lack a division instruction (ARM).
---
gatchat/ringbuffer.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
Patch has been applied, thanks.
Regards,
-Denis