Re: [Qemu-devel] [PATCH v5 1/4] util/fifo8: implement push/pop of multiple bytes

2014-02-04 Thread Peter Crosthwaite
On Fri, Jan 31, 2014 at 8:02 AM, Beniamino Galvani wrote: > The patch adds functions fifo8_push_all() and fifo8_pop_buf() which > can be used respectively to push the content of a memory buffer to the > fifo and to pop multiple bytes obtaining a pointer to the fifo backing > buffer. > > In additio

[Qemu-devel] [PATCH v5 1/4] util/fifo8: implement push/pop of multiple bytes

2014-01-30 Thread Beniamino Galvani
The patch adds functions fifo8_push_all() and fifo8_pop_buf() which can be used respectively to push the content of a memory buffer to the fifo and to pop multiple bytes obtaining a pointer to the fifo backing buffer. In addition, it implements fifo8_num_free() and fifo8_num_used() which allow to