Re: [PATCH 03/12] util/fifo8: Introduce fifo8_peek_buf()

2023-05-23 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > To be able to poke at FIFO content without popping it, peek/poke are different operations in my head. You peek to read stuff and poke to change stuff, or at least thats what I did in BASIC back in the 80s. Either way I don't think peek and poke are synonyms.

Re: [PATCH 03/12] util/fifo8: Introduce fifo8_peek_buf()

2023-05-22 Thread Francisco Iglesias
On [2023 May 22] Mon 17:31:35, Philippe Mathieu-Daudé wrote: > To be able to poke at FIFO content without popping it, > introduce the fifo8_peek_buf() method by factoring > common content from fifo8_pop_buf(). > > Signed-off-by: Philippe Mathieu-Daudé > --- > include/qemu/fifo8.h | 26 ++

[PATCH 03/12] util/fifo8: Introduce fifo8_peek_buf()

2023-05-22 Thread Philippe Mathieu-Daudé
To be able to poke at FIFO content without popping it, introduce the fifo8_peek_buf() method by factoring common content from fifo8_pop_buf(). Signed-off-by: Philippe Mathieu-Daudé --- include/qemu/fifo8.h | 26 ++ util/fifo8.c | 22 ++ 2 files