summary refs log tree commit diff stats
path: root/hw/lm32
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2015-12-18 16:04:25 +0100
committerJeff Cody <jcody@redhat.com>2016-02-29 14:54:31 -0500
commit939901dcd2093a5d6b40420314d1af8b185ec43c (patch)
treede8fc5dce5d4a0b1615bd8972f0758c98127b31f /hw/lm32
parentb189346eb1784df95ed6fed610411dbf23d19e1f (diff)
downloadfocaccia-qemu-939901dcd2093a5d6b40420314d1af8b185ec43c.tar.gz
focaccia-qemu-939901dcd2093a5d6b40420314d1af8b185ec43c.zip
vhdx: DIV_ROUND_UP() in vhdx_calc_bat_entries()
We have DIV_ROUND_UP(), so we can use it to produce more easily readable
code. It may be slower than the bit shifting currently performed
(because it actually performs a division), but since
vhdx_calc_bat_entries() is never used in a hot path, this is completely
fine.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 1450451066-13335-2-git-send-email-mreitz@redhat.com
Signed-off-by: Jeff Cody <jcody@redhat.com>
Diffstat (limited to 'hw/lm32')
0 files changed, 0 insertions, 0 deletions