qemu-e2k/hw/acpi
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
..
Makefile.objs acpi: move generic aml building helpers into dedictated file 2015-02-26 12:42:15 +01:00
acpi_interface.c acpi: introduce TYPE_ACPI_DEVICE_IF interface 2014-06-19 18:44:22 +03:00
aml-build.c acpi: Add missing GCC_FMT_ATTR to local function 2015-03-25 13:39:24 +01:00
bios-linker-loader.c bios linker: validate pointer within table 2015-02-26 12:42:15 +01:00
core.c acpi: accurate overflow check 2014-11-13 16:13:28 +01:00
cpu_hotplug.c acpi/cpu-hotplug: introduce helper function to keep bit setting in one place 2014-11-02 13:44:12 +02:00
ich9.c acpi, ich9: Add unplug cb for ich9. 2015-02-26 12:42:18 +01:00
memory_hotplug.c acpi, mem-hotplug: use PC_DIMM_SLOT_PROP in acpi_memory_plug_cb(). 2015-03-01 18:33:14 +01:00
pcihp.c Convert (ffs(val) - 1) to ctz32(val) 2015-04-28 15:36:08 +02:00
piix4.c pc: pcihp: expose MMIO base and len as properties 2015-02-26 13:04:18 +01:00