Home
last modified time | relevance | path

Searched hist:"04 a36158" (Results 1 – 1 of 1) sorted by relevance

/qemu/block/
H A Dvhdx.c04a36158 Fri Dec 18 15:04:26 GMT 2015 Max Reitz <mreitz@redhat.com> vhdx: Simplify vhdx_set_shift_bits()

For values which are powers of two (and we do assume all of these to
be), sizeof(x) * 8 - 1 - clz(x) == ctz(x). Therefore, use ctz().

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-id: 1450451066-13335-3-git-send-email-mreitz@redhat.com
Signed-off-by: Jeff Cody <jcody@redhat.com>