I have a fixed size circular buffer (implemented as an array): upon initialization, the buffer gets filled with the specified maximum number of elements which allows the use
Ensure that the buffer is always a power of two long and mask out the top bits.