Re: [PATCH 03/11] osdep: provide ROUND_DOWN macro

2021-06-25 Thread Philippe Mathieu-Daudé
On 6/24/21 8:04 PM, Paolo Bonzini wrote: > osdep.h provides a ROUND_UP macro to hide bitwise operations for the > purpose of rounding a number up to a power of two; add a ROUND_DOWN > macro that does the same with truncation towards zero. > > While at it, change the formatting of some comments. >

Re: [PATCH 03/11] osdep: provide ROUND_DOWN macro

2021-06-25 Thread Max Reitz
On 24.06.21 20:04, Paolo Bonzini wrote: osdep.h provides a ROUND_UP macro to hide bitwise operations for the purpose of rounding a number up to a power of two; add a ROUND_DOWN macro that does the same with truncation towards zero. While at it, change the formatting of some comments.

[PATCH 03/11] osdep: provide ROUND_DOWN macro

2021-06-24 Thread Paolo Bonzini
osdep.h provides a ROUND_UP macro to hide bitwise operations for the purpose of rounding a number up to a power of two; add a ROUND_DOWN macro that does the same with truncation towards zero. While at it, change the formatting of some comments. Signed-off-by: Paolo Bonzini ---