Re: [Qemu-devel] [PATCH 3/4] osdep: Document differences in rounding macros

2016-08-01 Thread Paolo Bonzini
On 21/07/2016 21:34, Eric Blake wrote: > Make it obvious which macros are safe in which situations. > > Useful since QEMU_ALIGN_UP and ROUND_UP both purport to do > the same thing, but differ on whether the alignment must be > a power of 2. > > Signed-off-by: Eric Blake > --- > include/qemu/o

[Qemu-devel] [PATCH 3/4] osdep: Document differences in rounding macros

2016-07-21 Thread Eric Blake
Make it obvious which macros are safe in which situations. Useful since QEMU_ALIGN_UP and ROUND_UP both purport to do the same thing, but differ on whether the alignment must be a power of 2. Signed-off-by: Eric Blake --- include/qemu/osdep.h | 6 +- 1 file changed, 5 insertions(+), 1 delet