mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
Make some more constants involved in right shifts unsigned to get rid of __ashrsi3 in the Player's core as well, saving some binsize.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19409 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7c18a3d91a
commit
6ed3ca7405
2 changed files with 8 additions and 8 deletions
|
|
@ -617,11 +617,11 @@ static bool draw_player_progress(struct gui_wps *gwps)
|
|||
for (i = 0; i < 7; i++, pos -= 5)
|
||||
{
|
||||
if (pos <= 0)
|
||||
progress_pattern[i] = 0x1f;
|
||||
progress_pattern[i] = 0x1fu;
|
||||
else if (pos >= 5)
|
||||
progress_pattern[i] = 0x00;
|
||||
progress_pattern[i] = 0x00u;
|
||||
else
|
||||
progress_pattern[i] = 0x1f >> pos;
|
||||
progress_pattern[i] = 0x1fu >> pos;
|
||||
}
|
||||
|
||||
display->define_pattern(gwps->data->wps_progress_pat[0], progress_pattern);
|
||||
|
|
@ -688,20 +688,20 @@ static void draw_player_fullbar(struct gui_wps *gwps, char* buf, int buf_size)
|
|||
|
||||
if (time_idx > 0) /* not the first group, add colon in front */
|
||||
{
|
||||
progress_pattern[1] |= 0x10;
|
||||
progress_pattern[3] |= 0x10;
|
||||
progress_pattern[1] |= 0x10u;
|
||||
progress_pattern[3] |= 0x10u;
|
||||
}
|
||||
time_idx++;
|
||||
}
|
||||
|
||||
if (pos >= 5)
|
||||
progress_pattern[5] = progress_pattern[6] = 0x1f;
|
||||
progress_pattern[5] = progress_pattern[6] = 0x1fu;
|
||||
}
|
||||
|
||||
if (pos > 0 && pos < 5)
|
||||
{
|
||||
softchar = true;
|
||||
progress_pattern[5] = progress_pattern[6] = (~0x1f >> pos) & 0x1f;
|
||||
progress_pattern[5] = progress_pattern[6] = (~0x1fu >> pos) & 0x1fu;
|
||||
}
|
||||
|
||||
if (softchar && pat_idx < 8)
|
||||
|
|
|
|||
|
|
@ -325,7 +325,7 @@ static void charging_display_info(bool animate)
|
|||
ypos = (phase + i/5) % 9; /* "bounce" effect */
|
||||
if (ypos > 4)
|
||||
ypos = 8 - ypos;
|
||||
buf[5 - ypos + 8 * (i/5)] |= 0x10 >> (i%5);
|
||||
buf[5 - ypos + 8 * (i/5)] |= 0x10u >> (i%5);
|
||||
}
|
||||
}
|
||||
phase++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue