group/pintos/src/lib/kernel/bitmap.c
/* Returns an elem_type where only the bit corresponding to
   BIT_IDX is turned on. */
Returns an elem_type where only the bit corresponding to
BIT_IDX is turned on.
Returns an elem_type where only the bit corresponding to BIT_IDX is turned on .
static inline elem_type
bit_mask (size_t bit_idx)
{
  return (elem_type) 1 << (bit_idx % ELEM_BITS);
}
static inline elem_type bit_mask ( size_t bit_idx ) { return ( elem_type ) 1 << ( bit_idx % ELEM_BITS ) ; }
Returns an elem_type where only the bit corresponding to
BIT_IDX is turned on.
Returns an elem_type where only the bit corresponding to BIT_IDX is turned on .