[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 03/11] osdep: provide ROUND_DOWN macro
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH 03/11] osdep: provide ROUND_DOWN macro |
Date: |
Fri, 25 Jun 2021 10:26:12 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
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.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> include/qemu/osdep.h | 28 ++++++++++++++++++++++------
> 1 file changed, 22 insertions(+), 6 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
- [PATCH v5 00/11] block: file-posix queue, Paolo Bonzini, 2021/06/24
- [PATCH 01/11] file-posix: fix max_iov for /dev/sg devices, Paolo Bonzini, 2021/06/24
- [PATCH 02/11] scsi-generic: pass max_segments via max_iov field in BlockLimits, Paolo Bonzini, 2021/06/24
- [PATCH 03/11] osdep: provide ROUND_DOWN macro, Paolo Bonzini, 2021/06/24
- [PATCH 04/11] block-backend: align max_transfer to request alignment, Paolo Bonzini, 2021/06/24
- [PATCH 07/11] block: feature detection for host block support, Paolo Bonzini, 2021/06/24
- [PATCH 10/11] block: detect DKIOCGETBLOCKCOUNT/SIZE before use, Paolo Bonzini, 2021/06/24
- [PATCH 09/11] block: try BSD disk size ioctls one after another, Paolo Bonzini, 2021/06/24
- [PATCH 05/11] block: add max_hw_transfer to BlockLimits, Paolo Bonzini, 2021/06/24