From 0ad97d13fc52b28de566dc0ddaf7245583eec2cc Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 12 Dec 2008 07:48:01 +0000 Subject: 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 --- firmware/drivers/ata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/drivers/ata.c') 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); -- cgit v1.2.3