group/pintos/src/lib/kernel/bitmap.c
/* Returns the number of bytes required to accomodate a bitmap
   with BIT_CNT bits (for use with bitmap_create_in_buf()). */
Returns the number of bytes required to accomodate a bitmap
with BIT_CNT bits (for use with bitmap_create_in_buf()).
Returns the number of bytes required to accomodate a bitmap with BIT_CNT bits ( for use with bitmap_create_in_buf () ) .
size_t
bitmap_buf_size (size_t bit_cnt)
{
  return sizeof (struct bitmap) + byte_cnt (bit_cnt);
}
size_t bitmap_buf_size ( size_t bit_cnt ) { return sizeof ( struct bitmap ) + byte_cnt ( bit_cnt ) ; }
Returns the number of bytes required to accomodate a bitmap
with BIT_CNT bits (for use with bitmap_create_in_buf()).
Returns the number of bytes required to accomodate a bitmap with BIT_CNT bits ( for use with bitmap_create_in_buf () ) .