qemu-e2k/hw/pci-host
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
..
apb.c Switch non-CPU callers from ld/st*_phys to address_space_ld/st* 2015-04-26 16:49:24 +01:00
bonito.c Convert (ffs(val) - 1) to ctz32(val) 2015-04-28 15:36:08 +02:00
gpex.c pci: Add generic PCIe host bridge 2015-02-13 05:46:07 +00:00
grackle.c pci: Trivial device model conversions to realize 2015-02-26 12:42:16 +01:00
Makefile.objs pci: Add generic PCIe host bridge 2015-02-13 05:46:07 +00:00
pam.c pci-host: update uncorresponding description 2014-08-15 18:54:06 +04:00
piix.c pci: Trivial device model conversions to realize 2015-02-26 12:42:16 +01:00
ppce500.c pci: Trivial device model conversions to realize 2015-02-26 12:42:16 +01:00
prep.c exec.c: Make address_space_rw take transaction attributes 2015-04-26 16:49:24 +01:00
q35.c machine: replace qemu opts with iommu property 2015-03-11 18:10:43 +01:00
uninorth.c uninorth: convert ffs(3) to ctz32() 2015-04-28 15:36:08 +02:00
versatile.c pci: Trivial device model conversions to realize 2015-02-26 12:42:16 +01:00