remove Popcount_word()

This commit is contained in:
Thomas Bernard
2018-12-10 12:33:11 +01:00
parent 4c1c2f34ad
commit 34c9962e4d
3 changed files with 4 additions and 29 deletions

View File

@@ -168,7 +168,7 @@ int C64_FLI(T_IO_Context * context, byte *bitmap, byte *screen_ram, byte *color_
memset(usage,0,16*sizeof(dword));
for (col=0;col<40;col++)
{
used_colors_count[row][col]=Popcount_word(used_colors[row][col]);
used_colors_count[row][col] = count_set_bits(used_colors[row][col]);
// Count which colors are used 3 times
if (used_colors_count[row][col]==3)
{
@@ -239,7 +239,7 @@ int C64_FLI(T_IO_Context * context, byte *bitmap, byte *screen_ram, byte *color_
}
}
}
if (filter != 0 && Popcount_word(filter) == 1)
if (filter != 0 && count_set_bits(filter) == 1)
{
// Only one color matched all needs: Use it.
i=1;