diff options
author | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-05-18 22:16:23 +0000 |
---|---|---|
committer | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-05-18 22:16:23 +0000 |
commit | a0c938f0e74166de102281ac2f445e4be5ff257e (patch) | |
tree | 3ae25fdc8c96c858e654f50a244ec03375560ecb /gcc/bitmap.h | |
parent | 522701efa4a0cef216eb7930c6759babfdd7068b (diff) | |
download | gcc-a0c938f0e74166de102281ac2f445e4be5ff257e.tar.gz |
Whitespace fixups
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113893 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/bitmap.h')
-rw-r--r-- | gcc/bitmap.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/gcc/bitmap.h b/gcc/bitmap.h index 216616d0b79..d11fa46243b 100644 --- a/gcc/bitmap.h +++ b/gcc/bitmap.h @@ -49,7 +49,7 @@ typedef struct bitmap_obstack GTY (()) /* Bitmap set element. We use a linked list to hold only the bits that are set. This allows for use to grow the bitset dynamically without - having to realloc and copy a giant bit array. + having to realloc and copy a giant bit array. The free list is implemented as a list of lists. There is one outer list connected together by prev fields. Each element of that @@ -172,7 +172,7 @@ extern unsigned bitmap_first_set_bit (bitmap); /* Do any cleanup needed on a bitmap when it is no longer used. */ #define BITMAP_FREE(BITMAP) \ - ((void)(bitmap_obstack_free (BITMAP), (BITMAP) = NULL)) + ((void)(bitmap_obstack_free (BITMAP), (BITMAP) = NULL)) /* Iterator for bitmaps. */ @@ -180,13 +180,13 @@ typedef struct { /* Pointer to the current bitmap element. */ bitmap_element *elt1; - + /* Pointer to 2nd bitmap element when two are involved. */ bitmap_element *elt2; /* Word within the current element. */ unsigned word_no; - + /* Contents of the actually processed word. When finding next bit it is shifted right, so that the actual bit is always the least significant bit of ACTUAL. */ @@ -211,7 +211,7 @@ bmp_iter_set_init (bitmap_iterator *bi, bitmap map, bi->elt1 = &bitmap_zero_bits; break; } - + if (bi->elt1->indx >= start_bit / BITMAP_ELEMENT_ALL_BITS) break; bi->elt1 = bi->elt1->next; @@ -220,7 +220,7 @@ bmp_iter_set_init (bitmap_iterator *bi, bitmap map, /* We might have gone past the start bit, so reinitialize it. */ if (bi->elt1->indx != start_bit / BITMAP_ELEMENT_ALL_BITS) start_bit = bi->elt1->indx * BITMAP_ELEMENT_ALL_BITS; - + /* Initialize for what is now start_bit. */ bi->word_no = start_bit / BITMAP_WORD_BITS % BITMAP_ELEMENT_WORDS; bi->bits = bi->elt1->bits[bi->word_no]; @@ -231,7 +231,7 @@ bmp_iter_set_init (bitmap_iterator *bi, bitmap map, will fail. It won't matter if this increment moves us into the next word. */ start_bit += !bi->bits; - + *bit_no = start_bit; } @@ -254,12 +254,12 @@ bmp_iter_and_init (bitmap_iterator *bi, bitmap map1, bitmap map2, bi->elt2 = NULL; break; } - + if (bi->elt1->indx >= start_bit / BITMAP_ELEMENT_ALL_BITS) break; bi->elt1 = bi->elt1->next; } - + /* Advance elt2 until it is not before elt1. */ while (1) { @@ -268,7 +268,7 @@ bmp_iter_and_init (bitmap_iterator *bi, bitmap map1, bitmap map2, bi->elt1 = bi->elt2 = &bitmap_zero_bits; break; } - + if (bi->elt2->indx >= bi->elt1->indx) break; bi->elt2 = bi->elt2->next; @@ -278,10 +278,10 @@ bmp_iter_and_init (bitmap_iterator *bi, bitmap map1, bitmap map2, if (bi->elt1->indx == bi->elt2->indx) { /* We might have advanced beyond the start_bit, so reinitialize - for that. */ + for that. */ if (bi->elt1->indx != start_bit / BITMAP_ELEMENT_ALL_BITS) start_bit = bi->elt1->indx * BITMAP_ELEMENT_ALL_BITS; - + bi->word_no = start_bit / BITMAP_WORD_BITS % BITMAP_ELEMENT_WORDS; bi->bits = bi->elt1->bits[bi->word_no] & bi->elt2->bits[bi->word_no]; bi->bits >>= start_bit % BITMAP_WORD_BITS; @@ -293,13 +293,13 @@ bmp_iter_and_init (bitmap_iterator *bi, bitmap map1, bitmap map2, bi->word_no = BITMAP_ELEMENT_WORDS - 1; bi->bits = 0; } - + /* If this word is zero, we must make sure we're not pointing at the first bit, otherwise our incrementing to the next word boundary will fail. It won't matter if this increment moves us into the next word. */ start_bit += !bi->bits; - + *bit_no = start_bit; } @@ -321,7 +321,7 @@ bmp_iter_and_compl_init (bitmap_iterator *bi, bitmap map1, bitmap map2, bi->elt1 = &bitmap_zero_bits; break; } - + if (bi->elt1->indx >= start_bit / BITMAP_ELEMENT_ALL_BITS) break; bi->elt1 = bi->elt1->next; @@ -335,19 +335,19 @@ bmp_iter_and_compl_init (bitmap_iterator *bi, bitmap map1, bitmap map2, that. */ if (bi->elt1->indx != start_bit / BITMAP_ELEMENT_ALL_BITS) start_bit = bi->elt1->indx * BITMAP_ELEMENT_ALL_BITS; - + bi->word_no = start_bit / BITMAP_WORD_BITS % BITMAP_ELEMENT_WORDS; bi->bits = bi->elt1->bits[bi->word_no]; if (bi->elt2 && bi->elt1->indx == bi->elt2->indx) bi->bits &= ~bi->elt2->bits[bi->word_no]; bi->bits >>= start_bit % BITMAP_WORD_BITS; - + /* If this word is zero, we must make sure we're not pointing at the first bit, otherwise our incrementing to the next word boundary will fail. It won't matter if this increment moves us into the next word. */ start_bit += !bi->bits; - + *bit_no = start_bit; } @@ -398,7 +398,7 @@ bmp_iter_set (bitmap_iterator *bi, unsigned *bit_no) *bit_no += BITMAP_WORD_BITS; bi->word_no++; } - + /* Advance to the next element. */ bi->elt1 = bi->elt1->next; if (!bi->elt1) @@ -433,7 +433,7 @@ bmp_iter_and (bitmap_iterator *bi, unsigned *bit_no) *bit_no = ((*bit_no + BITMAP_WORD_BITS - 1) / BITMAP_WORD_BITS * BITMAP_WORD_BITS); bi->word_no++; - + while (1) { /* Find the next nonzero word in this elt. */ @@ -445,7 +445,7 @@ bmp_iter_and (bitmap_iterator *bi, unsigned *bit_no) *bit_no += BITMAP_WORD_BITS; bi->word_no++; } - + /* Advance to the next identical element. */ do { @@ -458,7 +458,7 @@ bmp_iter_and (bitmap_iterator *bi, unsigned *bit_no) return false; } while (bi->elt1->indx < bi->elt2->indx); - + /* Advance elt2 to be no less than elt1. This might not advance. */ while (bi->elt2->indx < bi->elt1->indx) @@ -469,7 +469,7 @@ bmp_iter_and (bitmap_iterator *bi, unsigned *bit_no) } } while (bi->elt1->indx != bi->elt2->indx); - + *bit_no = bi->elt1->indx * BITMAP_ELEMENT_ALL_BITS; bi->word_no = 0; } @@ -514,7 +514,7 @@ bmp_iter_and_compl (bitmap_iterator *bi, unsigned *bit_no) *bit_no += BITMAP_WORD_BITS; bi->word_no++; } - + /* Advance to the next element of elt1. */ bi->elt1 = bi->elt1->next; if (!bi->elt1) @@ -523,7 +523,7 @@ bmp_iter_and_compl (bitmap_iterator *bi, unsigned *bit_no) /* Advance elt2 until it is no less than elt1. */ while (bi->elt2 && bi->elt2->indx < bi->elt1->indx) bi->elt2 = bi->elt2->next; - + *bit_no = bi->elt1->indx * BITMAP_ELEMENT_ALL_BITS; bi->word_no = 0; } @@ -545,7 +545,7 @@ bmp_iter_and_compl (bitmap_iterator *bi, unsigned *bit_no) loop state. */ #define EXECUTE_IF_AND_IN_BITMAP(BITMAP1, BITMAP2, MIN, BITNUM, ITER) \ - for (bmp_iter_and_init (&(ITER), (BITMAP1), (BITMAP2), (MIN), \ + for (bmp_iter_and_init (&(ITER), (BITMAP1), (BITMAP2), (MIN), \ &(BITNUM)); \ bmp_iter_and (&(ITER), &(BITNUM)); \ bmp_iter_next (&(ITER), &(BITNUM))) @@ -557,7 +557,7 @@ bmp_iter_and_compl (bitmap_iterator *bi, unsigned *bit_no) #define EXECUTE_IF_AND_COMPL_IN_BITMAP(BITMAP1, BITMAP2, MIN, BITNUM, ITER) \ for (bmp_iter_and_compl_init (&(ITER), (BITMAP1), (BITMAP2), (MIN), \ - &(BITNUM)); \ + &(BITNUM)); \ bmp_iter_and_compl (&(ITER), &(BITNUM)); \ bmp_iter_next (&(ITER), &(BITNUM))) |