summaryrefslogtreecommitdiffstats
path: root/linux-user/mips/target_cpu.h
diff options
context:
space:
mode:
authorAurelien Jarno2013-12-21 01:15:21 +0100
committerAurelien Jarno2014-06-18 18:10:47 +0200
commit739b7a90754924a0f023e8bb865d247ad0a60311 (patch)
tree7871c0a08bd717d08352984487a990c273761e09 /linux-user/mips/target_cpu.h
parentMerge remote-tracking branch 'remotes/bonzini/memory' into staging (diff)
downloadqemu-739b7a90754924a0f023e8bb865d247ad0a60311.tar.gz
qemu-739b7a90754924a0f023e8bb865d247ad0a60311.tar.xz
qemu-739b7a90754924a0f023e8bb865d247ad0a60311.zip
bitops: provide an inline implementation of find_first_bit
find_first_bit has started to be used heavily in TCG code. The current implementation based on find_next_bit is not optimal and can't be optimized be the compiler if the bit array has a fixed size, which is the case most of the time. This new implementation does not use find_next_bit and is yet small enough to be inlined. Cc: Corentin Chary <corentin.chary@gmail.com> Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'linux-user/mips/target_cpu.h')
0 files changed, 0 insertions, 0 deletions