Re: [PATCH 4/4] qemu/bswap: Let cpu_to_endian() functions handle constant expressions

2020-09-17 Thread Richard Henderson
On 9/17/20 9:31 AM, Philippe Mathieu-Daudé wrote: > cpu_to_endian() and endian_to_cpu() can be extended to handle > constant expressions. That way the programmer doesn't need to > remember the const_X() API exists. > > Suggested-by: Stefan Hajnoczi > Signed-off-by: Philippe Mathieu-Daudé > --- >

[PATCH 4/4] qemu/bswap: Let cpu_to_endian() functions handle constant expressions

2020-09-17 Thread Philippe Mathieu-Daudé
cpu_to_endian() and endian_to_cpu() can be extended to handle constant expressions. That way the programmer doesn't need to remember the const_X() API exists. Suggested-by: Stefan Hajnoczi Signed-off-by: Philippe Mathieu-Daudé --- include/qemu/bswap.h | 8 ++-- 1 file changed, 6 insertions(