mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-12 06:32:34 -05:00
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
This commit is contained in:
parent
c99ad8f2b4
commit
0ad97d13fc
1 changed files with 1 additions and 1 deletions
|
|
@ -1197,7 +1197,7 @@ static int set_features(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i=0; i < (int)(sizeof(features)/sizeof(features[0])); i++) {
|
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_FEATURE, features[i].subcommand);
|
||||||
SET_REG(ATA_NSECTOR, features[i].parameter);
|
SET_REG(ATA_NSECTOR, features[i].parameter);
|
||||||
SET_REG(ATA_COMMAND, CMD_SET_FEATURES);
|
SET_REG(ATA_COMMAND, CMD_SET_FEATURES);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue