src/hotspot/share/utilities/bitMap.inline.hpp
changeset 52485 e5534cc91a10
parent 52394 96bd0f70ef99
child 53244 9807daeb47c4
equal deleted inserted replaced
52484:18bd95c0e463 52485:e5534cc91a10
   235   }
   235   }
   236   return mask;
   236   return mask;
   237 }
   237 }
   238 
   238 
   239 inline void BitMap::set_large_range_of_words(idx_t beg, idx_t end) {
   239 inline void BitMap::set_large_range_of_words(idx_t beg, idx_t end) {
       
   240   assert(beg <= end, "underflow");
   240   memset(_map + beg, ~(unsigned char)0, (end - beg) * sizeof(bm_word_t));
   241   memset(_map + beg, ~(unsigned char)0, (end - beg) * sizeof(bm_word_t));
   241 }
   242 }
   242 
   243 
   243 inline void BitMap::clear_large_range_of_words(idx_t beg, idx_t end) {
   244 inline void BitMap::clear_large_range_of_words(idx_t beg, idx_t end) {
       
   245   assert(beg <= end, "underflow");
   244   memset(_map + beg, 0, (end - beg) * sizeof(bm_word_t));
   246   memset(_map + beg, 0, (end - beg) * sizeof(bm_word_t));
   245 }
   247 }
   246 
   248 
   247 inline BitMap::idx_t BitMap::word_index_round_up(idx_t bit) const {
   249 inline BitMap::idx_t BitMap::word_index_round_up(idx_t bit) const {
   248   idx_t bit_rounded_up = bit + (BitsPerWord - 1);
   250   idx_t bit_rounded_up = bit + (BitsPerWord - 1);