Home
last modified time | relevance | path

Searched refs:bitno (Results 1 – 11 of 11) sorted by relevance

/external/e2fsprogs/lib/ext2fs/
Dgen_bitmap.c31 __u32 bitno) in ext2fs_mark_generic_bitmap() argument
33 if ((bitno < bitmap->start) || (bitno > bitmap->end)) { in ext2fs_mark_generic_bitmap()
34 ext2fs_warn_bitmap2(bitmap, EXT2FS_MARK_ERROR, bitno); in ext2fs_mark_generic_bitmap()
37 return ext2fs_set_bit(bitno - bitmap->start, bitmap->bitmap); in ext2fs_mark_generic_bitmap()
41 blk_t bitno) in ext2fs_unmark_generic_bitmap() argument
43 if ((bitno < bitmap->start) || (bitno > bitmap->end)) { in ext2fs_unmark_generic_bitmap()
44 ext2fs_warn_bitmap2(bitmap, EXT2FS_UNMARK_ERROR, bitno); in ext2fs_unmark_generic_bitmap()
47 return ext2fs_clear_bit(bitno - bitmap->start, bitmap->bitmap); in ext2fs_unmark_generic_bitmap()
Drs_bitmap.c34 __u32 bitno; in ext2fs_resize_generic_bitmap() local
46 bitno = bmap->real_end; in ext2fs_resize_generic_bitmap()
47 if (bitno > new_end) in ext2fs_resize_generic_bitmap()
48 bitno = new_end; in ext2fs_resize_generic_bitmap()
49 for (; bitno > bmap->end; bitno--) in ext2fs_resize_generic_bitmap()
50 ext2fs_clear_bit(bitno - bmap->start, bmap->bitmap); in ext2fs_resize_generic_bitmap()
Dbitops.h109 __u32 bitno);
111 blk_t bitno);
405 blk_t bitno);
408 blk_t bitno) in ext2fs_test_generic_bitmap() argument
410 if ((bitno < bitmap->start) || (bitno > bitmap->end)) { in ext2fs_test_generic_bitmap()
411 ext2fs_warn_bitmap2(bitmap, EXT2FS_TEST_ERROR, bitno); in ext2fs_test_generic_bitmap()
414 return ext2fs_test_bit(bitno - bitmap->start, bitmap->bitmap); in ext2fs_test_generic_bitmap()
/external/bison/lib/
Dabitset.c52 bitset_bindex bitno; in abitset_small_list() local
64 bitno = *next; in abitset_small_list()
65 if (bitno >= size) in abitset_small_list()
68 word >>= bitno; in abitset_small_list()
75 for (count = 0; word; bitno++) in abitset_small_list()
78 list[count++] = bitno; in abitset_small_list()
84 for (count = 0; word; bitno++) in abitset_small_list()
88 list[count++] = bitno; in abitset_small_list()
91 bitno++; in abitset_small_list()
99 *next = bitno; in abitset_small_list()
[all …]
Debitset.c512 ebitset_set (bitset dst, bitset_bindex bitno) in ebitset_set() argument
514 bitset_windex windex = bitno / BITSET_WORD_BITS; in ebitset_set()
516 ebitset_elt_find (dst, bitno, EBITSET_CREATE); in ebitset_set()
519 (bitset_word) 1 << (bitno % BITSET_WORD_BITS); in ebitset_set()
525 ebitset_reset (bitset dst, bitset_bindex bitno) in ebitset_reset() argument
527 bitset_windex windex = bitno / BITSET_WORD_BITS; in ebitset_reset()
529 if (!ebitset_elt_find (dst, bitno, EBITSET_FIND)) in ebitset_reset()
533 ~((bitset_word) 1 << (bitno % BITSET_WORD_BITS)); in ebitset_reset()
543 ebitset_test (bitset src, bitset_bindex bitno) in ebitset_test() argument
545 bitset_windex windex = bitno / BITSET_WORD_BITS; in ebitset_test()
[all …]
Dlbitset.c517 lbitset_set (bitset dst, bitset_bindex bitno) in lbitset_set() argument
519 bitset_windex windex = bitno / BITSET_WORD_BITS; in lbitset_set()
524 (bitset_word) 1 << (bitno % BITSET_WORD_BITS); in lbitset_set()
530 lbitset_reset (bitset dst, bitset_bindex bitno) in lbitset_reset() argument
532 bitset_windex windex = bitno / BITSET_WORD_BITS; in lbitset_reset()
538 ~((bitset_word) 1 << (bitno % BITSET_WORD_BITS)); in lbitset_reset()
546 lbitset_test (bitset src, bitset_bindex bitno) in lbitset_test() argument
548 bitset_windex windex = bitno / BITSET_WORD_BITS; in lbitset_test()
552 >> (bitno % BITSET_WORD_BITS)) in lbitset_test()
572 bitset_bindex bitno; in lbitset_list_reverse() local
[all …]
Dvbitset.c117 vbitset_set (dst, bitno) in vbitset_set() argument
119 bitset_bindex bitno;
121 bitset_windex windex = bitno / BITSET_WORD_BITS;
127 vbitset_resize (dst, bitno);
130 (bitset_word) 1 << (bitno % BITSET_WORD_BITS);
136 vbitset_reset (dst, bitno) in vbitset_reset() argument
138 bitset_bindex bitno ATTRIBUTE_UNUSED;
147 vbitset_test (src, bitno) in vbitset_test() argument
149 bitset_bindex bitno ATTRIBUTE_UNUSED;
168 bitset_bindex bitno; local
[all …]
Dbitset.h135 bitset_set (bitset bset, bitset_bindex bitno) in bitset_set() argument
137 bitset_windex windex = bitno / BITSET_WORD_BITS; in bitset_set()
141 bset->b.cdata[offset] |= ((bitset_word) 1 << (bitno % BITSET_WORD_BITS)); in bitset_set()
143 BITSET_SET_ (bset, bitno); in bitset_set()
149 bitset_reset (bitset bset, bitset_bindex bitno) in bitset_reset() argument
151 bitset_windex windex = bitno / BITSET_WORD_BITS; in bitset_reset()
155 bset->b.cdata[offset] &= ~((bitset_word) 1 << (bitno % BITSET_WORD_BITS)); in bitset_reset()
157 BITSET_RESET_ (bset, bitno); in bitset_reset()
163 bitset_test (bitset bset, bitset_bindex bitno) in bitset_test() argument
165 bitset_windex windex = bitno / BITSET_WORD_BITS; in bitset_test()
[all …]
Dbitset.c227 bitset_next (bitset src, bitset_bindex bitno) in bitset_next() argument
230 bitset_bindex next = bitno; in bitset_next()
249 bitset_prev (bitset src, bitset_bindex bitno) in bitset_prev() argument
252 bitset_bindex next = bitno; in bitset_prev()
278 bitset_only_set_p (bitset src, bitset_bindex bitno) in bitset_only_set_p() argument
285 return val[0] == bitno; in bitset_only_set_p()
338 bitset_toggle_ (bitset bset, bitset_bindex bitno) in bitset_toggle_() argument
342 if (bitset_test (bset, bitno)) in bitset_toggle_()
344 bitset_reset (bset, bitno); in bitset_toggle_()
349 bitset_set (bset, bitno); in bitset_toggle_()
Dbitset_stats.c313 bitset_stats_set (bitset dst, bitset_bindex bitno) in bitset_stats_set() argument
316 bitset_windex wordno = bitno / BITSET_WORD_BITS; in bitset_stats_set()
323 bset->b.cdata[offset] |= (bitset_word) 1 << (bitno % BITSET_WORD_BITS); in bitset_stats_set()
327 BITSET_SET_ (bset, bitno); in bitset_stats_set()
332 bitset_stats_reset (bitset dst, bitset_bindex bitno) in bitset_stats_reset() argument
335 bitset_windex wordno = bitno / BITSET_WORD_BITS; in bitset_stats_reset()
343 ~((bitset_word) 1 << (bitno % BITSET_WORD_BITS)); in bitset_stats_reset()
347 BITSET_RESET_ (bset, bitno); in bitset_stats_reset()
352 bitset_stats_toggle (bitset src, bitset_bindex bitno) in bitset_stats_toggle() argument
354 return BITSET_TOGGLE_ (src->s.bset, bitno); in bitset_stats_toggle()
[all …]
/external/bzip2/
Dunzcrash.c67 int bitno = bit % 8; in flip_bit() local
68 uchar mask = 1 << bitno; in flip_bit()