for (b = a1; b < a2; b = b_next)
{
- struct bitmap2* bm2 = bm_lookup(bm, b);
+ struct bitmap2* bm2 = bm2_lookup(bm, b >> ADDR0_BITS);
b_next = (b & ~ADDR0_MASK) + ADDR0_COUNT;
if (b_next > a2)
tl_assert(bm);
- p2 = bm_lookup(bm, a);
+ p2 = bm2_lookup(bm, a >> ADDR0_BITS);
if (p2)
{
p1 = &p2->bm1;
for (b = a1; b < a2; b = b_next)
{
- struct bitmap2* const p2 = bm_lookup(bm, b);
+ struct bitmap2* const p2 = bm2_lookup(bm, b >> ADDR0_BITS);
b_next = (b & ~ADDR0_MASK) + ADDR0_COUNT;
if (b_next > a2)
for (b = a1; b < a2; b = b_next)
{
- struct bitmap2* bm2 = bm_lookup(bm, b);
+ struct bitmap2* bm2 = bm2_lookup(bm, b >> ADDR0_BITS);
b_next = (b & ~ADDR0_MASK) + ADDR0_COUNT;
if (b_next > a2)
{
struct bitmap2* bm2;
- bm2 = bm_lookup(bm, a1);
+ bm2 = bm2_lookup(bm, a1 >> ADDR0_BITS);
return (bm2 && bm0_is_any_set(bm2->bm1.bm0_w, a1 & ADDR0_MASK, size));
}
{
struct bitmap2* bm2;
- bm2 = bm_lookup(bm, a1);
+ bm2 = bm2_lookup(bm, a1 >> ADDR0_BITS);
if (bm2)
{
};
static __inline__
-struct bitmap2* bm_lookup(const struct bitmap* const bm, const Addr a)
+struct bitmap2* bm2_lookup(const struct bitmap* const bm, const UWord a1)
{
struct bitmap2* result;
- const UWord a1 = a >> ADDR0_BITS;
if (a1 == bm->last_lookup_a1)
{
return bm->last_lookup_result;