diff options
| author | Peter Maydell | 2015-07-24 14:33:08 +0200 |
|---|---|---|
| committer | Peter Maydell | 2015-09-07 15:19:00 +0200 |
| commit | 1d0148fe6c121b21476ac1ba5120f8990e7fe6cd (patch) | |
| tree | b397772e8c32a9332e3837e3c0dfb0aa42f0ffc3 /util/cutils.c | |
| parent | hw/pci: Use pow2ceil() rather than hand-calculation (diff) | |
| download | qemu-1d0148fe6c121b21476ac1ba5120f8990e7fe6cd.tar.gz qemu-1d0148fe6c121b21476ac1ba5120f8990e7fe6cd.tar.xz qemu-1d0148fe6c121b21476ac1ba5120f8990e7fe6cd.zip | |
hw/virtio/virtio-pci: Use pow2ceil() rather than hand-calculation
Use the utility function pow2ceil() for rounding up to the next
largest power of 2, rather than inline calculation.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-id: 1437741192-20955-3-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'util/cutils.c')
0 files changed, 0 insertions, 0 deletions
