aboutsummaryrefslogtreecommitdiff
path: root/gcc/bitmap.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1999-10-04 18:52:39 +0000
committerRichard Henderson <rth@cygnus.com>1999-10-04 18:52:39 +0000
commit6bbcb61f50050bfa2b5bc085a67ea6d3f9632248 (patch)
treeb9773a5f631cc19430069bdb2fe20c2fddbf3d0c /gcc/bitmap.h
parent85030b618d78f747b24a015657fc72d68a38bb68 (diff)
* 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: https://gcc.gnu.org/svn/gcc/trunk@29808 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/bitmap.h')
-rw-r--r--gcc/bitmap.h8
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. */