diff options
author | Max Reitz <mreitz@redhat.com> | 2015-12-18 16:04:25 +0100 |
---|---|---|
committer | Jeff Cody <jcody@redhat.com> | 2016-02-29 14:54:31 -0500 |
commit | 939901dcd2093a5d6b40420314d1af8b185ec43c (patch) | |
tree | de8fc5dce5d4a0b1615bd8972f0758c98127b31f /util/path.c | |
parent | b189346eb1784df95ed6fed610411dbf23d19e1f (diff) |
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 'util/path.c')
0 files changed, 0 insertions, 0 deletions