1
0
mirror of https://github.com/mist64/perfect6502.git synced 2024-06-08 12:29:28 +00:00

bitmap cleanup

This commit is contained in:
Michael Steil 2010-09-25 00:30:55 +00:00
parent bddff67b2c
commit a770b4b2f2

View File

@ -246,13 +246,13 @@ static inline void
listout_add(nodenum_t i)
{
listout.list[listout.count++] = i;
listout.bitmap[i>>5] |= 1 << (i & 31);
set_bitmap(listout.bitmap, i, 1);
}
static inline BOOL
listout_contains(nodenum_t el)
{
return (listout.bitmap[el>>5] >> (el & 31)) & 1;
return get_bitmap(listout.bitmap, el);
}
/************************************************************
@ -283,7 +283,7 @@ static inline void
group_add(nodenum_t i)
{
group[groupcount++] = i;
groupbitmap[i>>5] |= 1 << (i & 31);
set_bitmap(groupbitmap, i, 1);
}
static inline nodenum_t
@ -295,7 +295,7 @@ group_get(count_t n)
static inline BOOL
group_contains(nodenum_t el)
{
return (groupbitmap[el>>5] >> (el & 31)) & 1;
return get_bitmap(groupbitmap, el);
}
static inline count_t