group/pintos/src/lib/kernel/bitmap.c
/* Sets the CNT bits starting at START in B to VALUE. */
Sets the CNT bits starting at START in B to VALUE.
Sets the CNT bits starting at START in B to VALUE .
void
bitmap_set_multiple (struct bitmap *b, size_t start, size_t cnt, bool value)
{
  size_t i;
  ASSERT (b != NULL);
  ASSERT (start <= b->bit_cnt);
  ASSERT (start + cnt <= b->bit_cnt);
  for (i = 0; i < cnt; i++)
    bitmap_set (b, start + i, value);
}
void bitmap_set_multiple ( struct bitmap * b , size_t start , size_t cnt , bool value ) { size_t i ; ASSERT ( b != NULL ) ; ASSERT ( start <= b -> bit_cnt ) ; ASSERT ( start + cnt <= b -> bit_cnt ) ; for ( i = 0 ; i < cnt ; i ++ ) bitmap_set ( b , start + i , value ) ; }
Sets the CNT bits starting at START in B to VALUE.
Sets the CNT bits starting at START in B to VALUE .