qemu-irix/hw/display
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 Allow the use of X11 from a non standard location. 2015-03-12 15:50:11 +01:00
ads7846.c
blizzard.c blizzard: do not depend on VGA internals 2015-01-15 10:44:13 +03:00
blizzard_template.h
cg3.c
cirrus_vga.c cirrus-vga: Convert to realize 2015-02-26 12:42:17 +01:00
cirrus_vga_rop.h
cirrus_vga_rop2.h
exynos4210_fimd.c
framebuffer.c
framebuffer.h
g364fb.c
jazz_led.c
milkymist-tmu2.c
milkymist-vgafb.c
milkymist-vgafb_template.h
omap_dss.c omap: Fix warnings from Sparse 2015-03-19 11:11:55 +03:00
omap_lcd_template.h
omap_lcdc.c
pl110.c
pl110_template.h
pxa2xx_lcd.c
pxa2xx_template.h
qxl-logger.c
qxl-render.c spice: use bottom half instead of refresh timer for cursor updates 2014-12-16 14:15:29 +01:00
qxl.c pci, pc, virtio fixes and cleanups 2015-03-09 09:14:28 +00:00
qxl.h
sm501.c
sm501_template.h
ssd0303.c
ssd0323.c
tc6393xb.c Convert (ffs(val) - 1) to ctz32(val) 2015-04-28 15:36:08 +02:00
tc6393xb_template.h
tcx.c
vga-helpers.h vga: Rename vga_template.h to vga-helpers.h 2014-09-30 13:34:09 +02:00
vga-isa-mm.c
vga-isa.c isa: remove isa_mem_base variable 2015-02-13 14:09:28 +00:00
vga-pci.c vga: Expose framebuffer byteorder as a QOM property 2015-03-09 15:00:02 +01:00
vga.c Fix remaining warnings from Sparse (void return) 2015-03-19 11:11:55 +03:00
vga.h
vga_int.h move hw cursor pos from cirrus to vga 2014-12-16 15:14:42 +01:00
vmware_vga.c pci: Trivial device model conversions to realize 2015-02-26 12:42:16 +01:00
xenfb.c Add tracing to xenfb. 2015-02-10 09:27:19 +03:00