qemu-e2k/include/hw/pci
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
..
msi.h
msix.h
pci_bridge.h
pci_bus.h
pci_host.h
pci_ids.h sdhci: Define SDHCI PCI ids 2014-12-15 17:34:44 +01:00
pci_regs.h
pci.h Convert (ffs(val) - 1) to ctz32(val) 2015-04-28 15:36:08 +02:00
pcie_aer.h pci: fix several trivial typos in comment 2015-03-18 12:19:16 +01:00
pcie_host.h pci: Split pcie_host_mmcfg_map() 2015-01-26 20:25:52 +02:00
pcie_port.h
pcie_regs.h Convert (ffs(val) - 1) to ctz32(val) 2015-04-28 15:36:08 +02:00
pcie.h
shpc.h pci: split shpc_cleanup and shpc_free 2015-02-16 17:30:14 +01:00
slotid_cap.h