Home
last modified time | relevance | path

Searched refs:array_size_ (Results 1 – 3 of 3) sorted by relevance

/external/chromium/net/disk_cache/
Dbitmap.h17 Bitmap() : map_(NULL), num_bits_(0), array_size_(0), alloc_(false) {} in Bitmap()
22 : num_bits_(num_bits), array_size_(RequiredArraySize(num_bits)), in Bitmap()
24 map_ = new uint32[array_size_]; in Bitmap()
38 array_size_(std::min(RequiredArraySize(num_bits), num_words)), in Bitmap()
57 int ArraySize() const { return array_size_; } in ArraySize()
61 memset(map_, (value ? 0xFF : 0x00), array_size_ * sizeof(*map_)); in SetAll()
145 int array_size_; // The physical size (in uint32s) of the bitmap. variable
Dbitmap.cc44 const int old_array_size = array_size_; in Resize()
45 array_size_ = RequiredArraySize(num_bits); in Resize()
47 if (array_size_ != old_array_size) { in Resize()
48 uint32* new_map = new uint32[array_size_]; in Resize()
50 new_map[array_size_ - 1] = 0; in Resize()
52 sizeof(*map_) * std::min(array_size_, old_array_size)); in Resize()
93 DCHECK_LT(array_index, array_size_); in SetMapElement()
99 DCHECK_LT(array_index, array_size_); in GetMapElement()
105 memcpy(map_, map, std::min(size, array_size_) * sizeof(*map_)); in SetMap()
/external/qemu/elff/
Ddwarf_defs.h721 array_size_(ELFF_ARRAY_SIZE(small_array_)), in DwarfAbbrDieArray()
763 if (num >= array_size_) { in add()
785 array_size_ = new_size; in add()
873 array_size_ = sizeof(small_array_) / sizeof(small_array_[0]); in empty()
887 Dwarf_AbbrNum array_size_; variable