aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2015-12-18 16:04:26 +0100
committerJeff Cody <jcody@redhat.com>2016-02-29 14:54:31 -0500
commit04a3615860d693cbf5da015ee136a313628a42be (patch)
treed410443d0614124021420fc4686fcd551ab3c174 /tests
parent939901dcd2093a5d6b40420314d1af8b185ec43c (diff)
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>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions