Re: [Qemu-devel] [PATCH v3 2/4] util/fifo: Generalise for common integer widths

2014-04-14 Thread Peter Crosthwaite
On Mon, Apr 14, 2014 at 7:56 AM, Beniamino Galvani wrote: > On Wed, Apr 09, 2014 at 11:42:31PM -0700, Peter Crosthwaite wrote: >> Add support for 16, 32 and 64 bit width FIFOs. The push and pop >> functions are replicated to accept all four different integer types. >> The element width of the FIFO

Re: [Qemu-devel] [PATCH v3 2/4] util/fifo: Generalise for common integer widths

2014-04-13 Thread Beniamino Galvani
On Wed, Apr 09, 2014 at 11:42:31PM -0700, Peter Crosthwaite wrote: > Add support for 16, 32 and 64 bit width FIFOs. The push and pop > functions are replicated to accept all four different integer types. > The element width of the FIFO is set at creation time. > > The backing storage for all eleme

[Qemu-devel] [PATCH v3 2/4] util/fifo: Generalise for common integer widths

2014-04-09 Thread Peter Crosthwaite
Add support for 16, 32 and 64 bit width FIFOs. The push and pop functions are replicated to accept all four different integer types. The element width of the FIFO is set at creation time. The backing storage for all element types is still uint8_t regardless of element width so some save-load logic