qemu/target-ppc
Stefan Hajnoczi 786a4ea82e Convert (ffs(val) - 1) to ctz32(val)
This commit was generated mechanically by coccinelle from the following
semantic patch:

@@
expression val;
@@
- (ffs(val) - 1)
+ ctz32(val)

The call sites have been audited to ensure the ffs(0) - 1 == -1 case
never occurs (due to input validation, asserts, etc).  Therefore we
don't need to worry about the fact that ctz32(0) == 32.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1427124571-28598-5-git-send-email-stefanha@redhat.com
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2015-04-28 15:36:08 +02:00
..
arch_dump.c
cpu-models.c target-ppc: Remove POWER5+ v0.0 that never existed 2015-03-25 22:49:46 +01:00
cpu-models.h target-ppc: Remove POWER5+ v0.0 that never existed 2015-03-25 22:49:46 +01:00
cpu-qom.h
cpu.h Convert (ffs(val) - 1) to ctz32(val) 2015-04-28 15:36:08 +02:00
dfp_helper.c
excp_helper.c
fpu_helper.c
gdbstub.c
helper_regs.h
helper.h
int_helper.c
kvm_ppc.c
kvm_ppc.h
kvm-stub.c
kvm.c kvm: add machine state to kvm_arch_init 2015-03-11 18:16:17 +01:00
machine.c target-ppc: don't invalidate msr MSR_HVB bit in cpu_post_load 2015-04-17 11:44:01 +01:00
Makefile.objs
mem_helper.c
mfrom_table_gen.c
mfrom_table.c
misc_helper.c
mmu_helper.c
mmu-hash32.c
mmu-hash32.h
mmu-hash64.c target-ppc: Fix warnings from Sparse 2015-03-09 15:00:08 +01:00
mmu-hash64.h
STATUS
timebase_helper.c
translate_init.c PPC: Introduce the Virtual Time Base (VTB) SPR register 2015-03-09 15:00:07 +01:00
translate.c tcg: Change translator-side labels to a pointer 2015-03-13 12:28:18 -07:00
user_only_helper.c