qemu-e2k/include/qemu
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
..
acl.h
atomic.h atomics: add explicit compiler fence in __atomic memory barriers 2015-06-05 19:45:13 +02:00
bitmap.h bitmap: add atomic test and clear 2015-06-05 17:10:00 +02:00
bitops.h bitmap: add atomic set functions 2015-06-05 17:10:00 +02:00
bswap.h cpu_ldst.h, cpu-all.h, bswap.h: Update documentation on ld/st accessors 2015-01-20 15:19:35 +00:00
compatfd.h util: Remove unused functions 2015-04-30 16:05:48 +03:00
compiler.h compiler.h: Use glue() in QEMU_BUILD_BUG_ON define 2015-08-19 16:29:53 +01:00
config-file.h
crc32c.h
envlist.h
error-report.h
event_notifier.h
fifo8.h
fprintf-fn.h Stop including qemu-common.h in memory.h 2015-07-06 14:59:09 +02:00
hbitmap.h util/hbitmap: Add an API to reset all set bits in hbitmap 2015-06-23 15:06:16 +01:00
host-utils.h Make pow2ceil() and pow2floor() inline 2015-09-07 14:19:01 +01:00
int128.h
iov.h iov: don't touch iov in iov_send_recv() 2015-06-23 16:05:34 +01:00
log.h disas: Remove uses of CPU env 2015-06-22 17:40:01 +02:00
main-loop.h main-loop: introduce qemu_mutex_iothread_locked 2015-07-01 15:45:50 +02:00
module.h
notify.h
option_int.h
option.h QemuOpts: Wean off qerror_report_err() 2015-06-22 18:20:39 +02:00
osdep.h osdep.h: Add header comment 2015-08-19 16:29:53 +01:00
queue.h queue.h: Add QLIST_FIX_HEAD_PTR() 2015-06-12 17:04:59 +02:00
range.h
ratelimit.h
rcu_queue.h rcu: introduce RCU-enabled QLIST 2015-02-16 17:30:19 +01:00
rcu.h rcu: do not create thread in pthread_atfork callback 2015-04-01 10:06:38 +02:00
readline.h
rfifolock.h
seqlock.h
sockets.h Include qapi/qmp/qerror.h exactly where needed 2015-06-22 18:20:41 +02:00
thread-posix.h
thread-win32.h
thread.h rcu: add rcu library 2015-02-02 16:55:10 +01:00
throttle.h throttle: refuse bps_max/iops_max without bps/iops 2015-08-05 12:53:48 +01:00
timer.h qemu-common.h: Move muldiv64() to host-utils.h 2015-08-19 16:29:53 +01:00
tls.h
typedefs.h pc: Move PCMachineClass, PCMachineState to qemu/typedefs.h 2015-08-13 14:08:26 +03:00
uri.h
xattr.h