Home
last modified time | relevance | path

Searched refs:bit_mask (Results 1 – 4 of 4) sorted by relevance

/external/e2fsprogs/ext2ed/
Dblockbitmap_com.c176 unsigned char bit_mask=1; in allocate_block() local
182 bit_mask*=2; /* Generate the or mask - 1 at the right place */ in allocate_block()
183 type_data.u.buffer [byte_offset] |= bit_mask; /* And apply it */ in allocate_block()
191 unsigned char bit_mask=1; in deallocate_block() local
196 bit_mask*=2; in deallocate_block()
197 bit_mask^=0xff; in deallocate_block()
199 type_data.u.buffer [byte_offset] &= bit_mask; in deallocate_block()
Dinodebitmap_com.c136 unsigned char bit_mask=1; in allocate_inode() local
141 bit_mask*=2; in allocate_inode()
142 type_data.u.buffer [byte_offset] |= bit_mask; in allocate_inode()
148 unsigned char bit_mask=1; in deallocate_inode() local
153 bit_mask*=2; in deallocate_inode()
154 bit_mask^=0xff; in deallocate_inode()
156 type_data.u.buffer [byte_offset] &= bit_mask; in deallocate_inode()
/external/opencore/baselibs/media_data_structures/src/
Daccess_unit_impl.cpp239 uint8 bit_mask = 0xff; // start with full mask in match_bit_pattern_no_state() local
244 bit_mask = bit_pattern_masks[7 - bits_in_fraction]; in match_bit_pattern_no_state()
294 if (((*tmp_ptr) & bit_mask) == (pattern[num_bytes] & bit_mask)) in match_bit_pattern_no_state()
317 uint8 bit_mask = 0xff; // start with full mask in match_bit_pattern_with_state() local
322 bit_mask = bit_pattern_masks[7 - bits_in_fraction]; in match_bit_pattern_with_state()
372 if (bits_in_fraction && ((*tmp_ptr & bit_mask) == (pattern[num_bytes] & bit_mask))) in match_bit_pattern_with_state()
/external/qemu/distrib/libpng-1.2.19/
Dpngrutil.c1244 int bit_mask; in png_handle_tRNS() local
1251 bit_mask = (1 << png_ptr->bit_depth) - 1; in png_handle_tRNS()
1281 png_ptr->trans_values.gray = png_get_uint_16(buf) & bit_mask; in png_handle_tRNS()
1295 png_ptr->trans_values.red = png_get_uint_16(buf) & bit_mask; in png_handle_tRNS()
1296 png_ptr->trans_values.green = png_get_uint_16(buf + 2) & bit_mask; in png_handle_tRNS()
1297 png_ptr->trans_values.blue = png_get_uint_16(buf + 4) & bit_mask; in png_handle_tRNS()