Lines Matching refs:num_vec
822 std::string RosAlloc::Run::BitMapToStr(uint32_t* bit_map_base, size_t num_vec) {
824 for (size_t v = 0; v < num_vec; v++) {
826 if (v != num_vec - 1) {
838 size_t num_vec = RoundUp(num_slots, 32) / 32;
846 << " alloc_bit_map=" << BitMapToStr(alloc_bit_map_, num_vec)
847 << " bulk_free_bit_map=" << BitMapToStr(BulkFreeBitMap(), num_vec)
848 << " thread_local_bit_map=" << BitMapToStr(ThreadLocalFreeBitMap(), num_vec)
902 size_t num_vec = RoundUp(numOfSlots[idx], 32) / 32;
903 DCHECK_LT(vec_idx, num_vec);
926 const size_t num_vec = RoundUp(num_of_slots, 32) / 32;
931 for (size_t v = 0; v < num_vec; v++, vecp++, tl_free_vecp++) {
945 if (v == num_vec - 1) {
948 is_all_free_after && GetBitmapLastVectorMask(num_of_slots, num_vec) == vec_after;
964 const size_t num_vec = NumberOfBitmapVectors();
967 for (size_t v = 0; v < num_vec; v++, vecp++, free_vecp++) {
981 size_t num_vec = NumberOfBitmapVectors();
984 for (size_t v = 0; v < num_vec; v++, to_vecp++, from_vecp++) {
1015 size_t num_vec = NumberOfBitmapVectors();
1016 DCHECK_LT(vec_idx, num_vec);
1032 inline uint32_t RosAlloc::Run::GetBitmapLastVectorMask(size_t num_slots, size_t num_vec) {
1034 DCHECK_GE(num_slots * kBitsPerVec, num_vec);
1035 size_t remain = num_vec * kBitsPerVec - num_slots;
1043 const size_t num_vec = NumberOfBitmapVectors();
1044 DCHECK_NE(num_vec, 0U);
1046 for (size_t v = 0; v < num_vec - 1; v++) {
1053 return alloc_bit_map_[num_vec - 1] == GetBitmapLastVectorMask(num_slots, num_vec);
1057 const size_t num_vec = NumberOfBitmapVectors();
1058 for (size_t v = 0; v < num_vec; ++v) {
1067 const size_t num_vec = NumberOfBitmapVectors();
1068 for (size_t v = 0; v < num_vec; v++) {
1078 const size_t num_vec = NumberOfBitmapVectors();
1079 for (size_t v = 0; v < num_vec; v++) {
1091 const size_t num_vec = RoundUp(num_slots, 32) / 32;
1092 DCHECK_NE(num_vec, 0U);
1095 alloc_bit_map_[num_vec - 1] |= GetBitmapLastVectorMask(num_slots, num_vec);
1110 size_t num_vec = NumberOfBitmapVectors();
1111 memset(alloc_bit_map_, 0xFF, sizeof(uint32_t) * num_vec);
1112 first_search_vec_idx_ = num_vec - 1; // No free bits in any of the bitmap words.
1122 size_t num_vec = RoundUp(num_slots, 32) / 32;
1124 for (size_t v = 0; v < num_vec; v++, slots += 32) {
2001 const size_t num_vec = RoundUp(num_slots, 32) / 32;
2002 CHECK_GT(num_vec, 0U);
2009 uint32_t last_word_mask = GetBitmapLastVectorMask(num_slots, num_vec);
2011 CHECK_EQ(alloc_bit_map_[num_vec - 1] & last_word_mask, last_word_mask);
2013 CHECK_LT(first_search_vec_idx_, num_vec);
2078 for (size_t v = 0; v < num_vec; v++, slots += 32) {