Bool bm_has(struct bitmap* const bm, const Addr a1, const Addr a2, const BmAccessTypeT access_type) { Addr b; for (b = a1; b < a2; b++) { if (! bm_has_1(bm, b, access_type)) { return False; } } return True; }
Bool bm_has_any(const struct bitmap* const bm, const Addr a1, const Addr a2, const BmAccessTypeT access_type) { Addr b; tl_assert(bm); for (b = a1; b < a2; b++) { if (bm_has_1(bm, b, access_type)) { return True; } } return False; }