Lines Matching refs:fbl
11 #include <fbl/algorithm.h>
12 #include <fbl/alloc_checker.h>
20 fbl::unique_ptr<RleBitmapElement> AllocateElement(RleBitmap::FreeList* free_list) {
22 fbl::AllocChecker ac;
23 fbl::unique_ptr<RleBitmapElement> new_elem(new (&ac) RleBitmapElement());
25 return fbl::unique_ptr<RleBitmapElement>();
35 void ReleaseElement(RleBitmap::FreeList* free_list, fbl::unique_ptr<RleBitmapElement>&& elem) {
37 free_list->push_back(fbl::move(elem));
59 size_t elem_min = fbl::max(bitoff, elem.bitoff); // Minimum valid bit within elem.
60 size_t elem_max = fbl::min(bitmax, elem.end()); // Maximum valid bit within elem.
157 fbl::unique_ptr<RleBitmapElement> new_elem = AllocateElement(free_list);
171 elems_.insert(ends_after, fbl::move(new_elem));
198 max = fbl::max(max, itr->bitoff + itr->bitlen);
237 fbl::unique_ptr<RleBitmapElement> new_elem = AllocateElement(free_list);
245 elems_.insert_after(itr, fbl::move(new_elem));