From 66b5ac3c2d3ee5b6580ce8496b8741ff2ae20355 Mon Sep 17 00:00:00 2001 From: rth Date: Mon, 4 Oct 1999 18:52:39 +0000 Subject: * 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 --- gcc/bitmap.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gcc/bitmap.h') 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. */ -- cgit v1.2.1