diff options
| author | Richard Henderson | 2013-07-30 20:20:43 +0200 |
|---|---|---|
| committer | Anthony Liguori | 2013-07-31 14:54:21 +0200 |
| commit | 1197cbb9eda1dc82e2fa1815ca62bc3de158353e (patch) | |
| tree | 5bc0d98905c692aba8aa93de764bb9b8114c5591 /include/exec | |
| parent | qdev: Fix 32-bit compilation in print_size (diff) | |
| download | qemu-1197cbb9eda1dc82e2fa1815ca62bc3de158353e.tar.gz qemu-1197cbb9eda1dc82e2fa1815ca62bc3de158353e.tar.xz qemu-1197cbb9eda1dc82e2fa1815ca62bc3de158353e.zip | |
qdev: Use clz in print_size
We can compute a floor log2 value with clz rather than a division loop.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Message-id: 1375208443-17288-3-git-send-email-rth@twiddle.net
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions
