(svn r10122) -Codechange: Add a CountBitsSet function and use it to replace some less efficient loops.

This commit is contained in:
maedhros
2007-06-12 22:13:49 +00:00
parent f3f744d36a
commit 12be876131
4 changed files with 22 additions and 20 deletions

View File

@@ -147,9 +147,11 @@ Town *ClosestTownFromTile(TileIndex tile, uint threshold);
void ChangeTownRating(Town *t, int add, int max);
uint GetTownRadiusGroup(const Town* t, TileIndex tile);
int FindFirstBit(uint32 x);
void ShowHighscoreTable(int difficulty, int8 rank);
int FindFirstBit(uint32 x);
int CountBitsSet(uint32 value);
void AfterLoadTown();
void UpdatePatches();
void AskExitGame();