summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-12-12 07:48:01 +0000
committerJens Arnold <amiconn@rockbox.org>2008-12-12 07:48:01 +0000
commit0ad97d13fc52b28de566dc0ddaf7245583eec2cc (patch)
tree7b91b56ddbaf2f55133c15aabdd65ab102be0af4 /firmware
parentc99ad8f2b47277d01474095203d531a04269d37e (diff)
downloadrockbox-0ad97d13fc52b28de566dc0ddaf7245583eec2cc.tar.gz
rockbox-0ad97d13fc52b28de566dc0ddaf7245583eec2cc.tar.bz2
rockbox-0ad97d13fc52b28de566dc0ddaf7245583eec2cc.zip
Reclaim a bit of binsize on hdd based archoses by making the bit test unsigned. On SH1, gcc optimizes this by using a right shift, and a signed '1' made it use an arithmetic right-shift-by-n, which is a libgcc function on SH1. This was the only place in the core using it. No effect on other architectures.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19399 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/ata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index e3fa3e8958..edef507e0d 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -1197,7 +1197,7 @@ static int set_features(void)
}
for (i=0; i < (int)(sizeof(features)/sizeof(features[0])); i++) {
- if (identify_info[features[i].id_word] & (1 << features[i].id_bit)) {
+ if (identify_info[features[i].id_word] & (1u << features[i].id_bit)) {
SET_REG(ATA_FEATURE, features[i].subcommand);
SET_REG(ATA_NSECTOR, features[i].parameter);
SET_REG(ATA_COMMAND, CMD_SET_FEATURES);