(svn r2650) Convert many explicit shifts+ands to extract bits to invocations of GB - should be a bit nicer to read

This commit is contained in:
tron
2005-07-20 15:29:28 +00:00
parent f432314fa9
commit ac66e3e28f
23 changed files with 130 additions and 128 deletions

View File

@@ -132,8 +132,8 @@ static void SelectSongToPlay(void)
i = 500;
do {
uint32 r = InteractiveRandom();
byte *a = &_cur_playlist[r & 0x1F];
byte *b = &_cur_playlist[(r >> 8)&0x1F];
byte *a = &_cur_playlist[GB(r, 0, 5)];
byte *b = &_cur_playlist[GB(r, 8, 5)];
if (*a != 0 && *b != 0) {
byte t = *a;