qemu-e2k/hw/gpio
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 PPC: Add MPC8XXX gpio controller 2014-11-04 23:26:12 +01:00
max7310.c Convert (ffs(val) - 1) to ctz32(val) 2015-04-28 15:36:08 +02:00
mpc8xxx.c PPC: Add MPC8XXX gpio controller 2014-11-04 23:26:12 +01:00
omap_gpio.c omap: Fix warnings from Sparse 2015-03-19 11:11:55 +03:00
pl061.c pl061: implement input interrupt logic 2014-09-12 14:06:48 +01:00
puv3_gpio.c puv3_gpio: QOM cast cleanup 2013-07-29 21:06:57 +02:00
zaurus.c Convert (ffs(val) - 1) to ctz32(val) 2015-04-28 15:36:08 +02:00