Peter Maydell 8f1ed5f508 Make pow2ceil() and pow2floor() inline
Since the pow2floor() function is now used in a hot code path,
make it inline; for consistency, provide pow2ceil() as an inline
function too.

Because these functions use ctz64() we have to put the inline
versions into host-utils.h, so they have access to ctz64(),
and move the inline is_power_of_2() along with them.

We then need to include host-utils.h from qemu-common.h so that
the files which use these functions via qemu-common.h still have
access to them.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1437741192-20955-7-git-send-email-peter.maydell@linaro.org
2015-09-07 14:19:01 +01:00
2015-07-08 13:11:01 +02:00
2015-09-04 17:37:50 +01:00
2015-09-07 11:23:08 +01:00
2015-09-02 14:56:39 +01:00
2015-09-02 14:56:39 +01:00
2015-09-01 13:16:26 -05:00
2015-07-27 22:44:47 +03:00
2015-08-14 23:40:32 +02:00
2015-09-07 10:39:27 +01:00
2015-09-04 13:26:26 +02:00
2015-09-04 13:26:26 +02:00
2015-07-07 09:22:40 +01:00
2015-09-04 13:26:26 +02:00
2015-09-01 13:16:26 -05:00
2015-09-01 13:16:26 -05:00
2015-07-24 13:57:45 +02:00
2015-08-19 16:29:53 +01:00
2015-08-11 23:15:55 +01:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%