aboutsummaryrefslogtreecommitdiff
path: root/gcc/bitmap.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1999-10-04 11:52:39 -0700
committerRichard Henderson <rth@gcc.gnu.org>1999-10-04 11:52:39 -0700
commit8229306b8bf013abab6c77e56f486097075f6161 (patch)
treeb9773a5f631cc19430069bdb2fe20c2fddbf3d0c /gcc/bitmap.h
parent393f3ad5b9faca002ce01cd61db226174f01f44a (diff)
downloadgcc-8229306b8bf013abab6c77e56f486097075f6161.zip
gcc-8229306b8bf013abab6c77e56f486097075f6161.tar.gz
gcc-8229306b8bf013abab6c77e56f486097075f6161.tar.bz2
bitmap.h (enum bitmap_bits): Add BITMAP_XOR.
* 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. From-SVN: r29808
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 6f05bcf..286c75e 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. */