diff options
author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-27 21:41:33 +0000 |
---|---|---|
committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-27 21:41:33 +0000 |
commit | 0ff89ae1c734efa3ef15396372ce4d97dd50cc01 (patch) | |
tree | fdcc965c6e915c919f4e76aad50a350e964a0c27 /gcc/bitmap.h | |
parent | 6cb2a4ab8b93f7f057b794f0e61eb76aaff9341d (diff) | |
download | gcc-0ff89ae1c734efa3ef15396372ce4d97dd50cc01.tar.gz |
2004-09-27 Michael Matz <matz@suse.de>
PR bootstrap/17698
PR bootstrap/17702
* bitmap.h (bmp_iter_single_init, bmp_iter_and_not_init,
bmp_iter_and_init): Shift by bit_in_word.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88201 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/bitmap.h')
-rw-r--r-- | gcc/bitmap.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/bitmap.h b/gcc/bitmap.h index 0afc7f535a0..d368a9c3ac4 100644 --- a/gcc/bitmap.h +++ b/gcc/bitmap.h @@ -269,7 +269,7 @@ bmp_iter_single_init (bitmap_iterator *bi, bitmap bmp, unsigned min) bi->word = word_in_elt; bi->word_bit = min - bit_in_word; bi->bit = min; - bi->actual = bi->ptr1->bits[word_in_elt] >> bit_in_elt; + bi->actual = bi->ptr1->bits[word_in_elt] >> bit_in_word; } else { @@ -400,9 +400,9 @@ bmp_iter_and_not_init (bitmap_iterator *bi, bitmap bmp1, bitmap bmp2, if (bi->ptr2 && bi->ptr2->indx == indx) bi->actual = (bi->ptr1->bits[word_in_elt] - & ~bi->ptr2->bits[word_in_elt]) >> bit_in_elt; + & ~bi->ptr2->bits[word_in_elt]) >> bit_in_word; else - bi->actual = bi->ptr1->bits[word_in_elt] >> bit_in_elt; + bi->actual = bi->ptr1->bits[word_in_elt] >> bit_in_word; } else { @@ -539,7 +539,7 @@ bmp_iter_and_init (bitmap_iterator *bi, bitmap bmp1, bitmap bmp2, bi->bit = min; bi->actual = (bi->ptr1->bits[word_in_elt] - & bi->ptr2->bits[word_in_elt]) >> bit_in_elt; + & bi->ptr2->bits[word_in_elt]) >> bit_in_word; } else { |