diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-04 18:52:39 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-10-04 18:52:39 +0000 |
commit | 66b5ac3c2d3ee5b6580ce8496b8741ff2ae20355 (patch) | |
tree | b9773a5f631cc19430069bdb2fe20c2fddbf3d0c /gcc/bitmap.h | |
parent | 4076a36785416c4bc31a1bf530cbd266e9f7a6e4 (diff) | |
download | gcc-66b5ac3c2d3ee5b6580ce8496b8741ff2ae20355.tar.gz |
* bitmap.h (enum bitmap_bits): Add BITMAP_XOR.
* bitmap.c (bitmap_operation): Return true iff TO changed.
(bitmap_equal_p): New.
(bitmap_bit_p): Tidy arithmetic.
(debug_bitmap_file): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29808 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/bitmap.h')
-rw-r--r-- | gcc/bitmap.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/bitmap.h b/gcc/bitmap.h index 6f05bcfcee6..286c75e98aa 100644 --- a/gcc/bitmap.h +++ b/gcc/bitmap.h @@ -55,7 +55,8 @@ typedef struct bitmap_head_def { enum bitmap_bits { BITMAP_AND, /* TO = FROM1 & FROM2 */ BITMAP_AND_COMPL, /* TO = FROM1 & ~ FROM2 */ - BITMAP_IOR /* TO = FROM1 | FROM2 */ + BITMAP_IOR, /* TO = FROM1 | FROM2 */ + BITMAP_XOR /* TO = FROM1 ^ FROM2 */ }; /* Global data */ @@ -68,8 +69,11 @@ extern void bitmap_clear PROTO((bitmap)); /* Copy a bitmap to another bitmap. */ extern void bitmap_copy PROTO((bitmap, bitmap)); +/* True if two bitmaps are identical. */ +extern int bitmap_equal_p PROTO((bitmap, bitmap)); + /* Perform an operation on two bitmaps, yielding a third. */ -extern void bitmap_operation PROTO((bitmap, bitmap, bitmap, enum bitmap_bits)); +extern int bitmap_operation PROTO((bitmap, bitmap, bitmap, enum bitmap_bits)); /* `or' into one bitmap the `and' of a second bitmap witih the complement of a third. */ |