Convert a number of places in core and plugins to use the BIT_N() macro instead of...
commit1d6df54df27cb41c02226678a2c8f9feddd1a1e0
authorJens Arnold <amiconn@rockbox.org>
Sun, 7 Jun 2009 21:27:05 +0000 (7 21:27 +0000)
committerJens Arnold <amiconn@rockbox.org>
Sun, 7 Jun 2009 21:27:05 +0000 (7 21:27 +0000)
tree5fdc6dd98ac0208f5c3351b062063af6914cbefb
parentc3182ec333982e961d3babfbdb1125fd5bac7fb8
Convert a number of places in core and plugins to use the BIT_N() macro instead of 1<<n. Speeds up things on SH1, and also reduces core binsize. Most notable speedups: 1 bit lcd driver: drawpixel +20%, drawline + 27%, hline +5%; jpeg viewer: +8% for 1/8 scaling. Other targets are unaffected.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21205 a1c6a512-1295-4272-9138-f99709370657
24 files changed:
apps/gui/viewport.h
apps/misc.c
apps/misc.h
apps/plugins/alpine_cdc.c
apps/plugins/jpeg/jpeg_decoder.c
apps/plugins/lib/fixedpoint.c
apps/plugins/lib/grey_core.c
apps/plugins/lib/helper.c
apps/plugins/rockboy/cpu.c
apps/plugins/rockboy/lcd.c
apps/plugins/rockboy/sound.c
apps/plugins/sudoku/generator.c
apps/plugins/sudoku/sudoku.c
apps/plugins/zxbox/sp_def.h
apps/plugins/zxbox/spkey.c
apps/plugins/zxbox/spscr.c
apps/recorder/bmp.c
apps/recorder/jpeg_load.c
apps/replaygain.c
apps/screens.c
firmware/drivers/ata.c
firmware/drivers/ata_mmc.c
firmware/drivers/lcd-1bit-vert.c
firmware/screendump.c