diff options
author | Trevor Saunders <tsaunders@mozilla.com> | 2014-02-19 01:38:38 -0500 |
---|---|---|
committer | Trevor Saunders <tsaunders@mozilla.com> | 2014-02-19 01:38:38 -0500 |
commit | 9bc7d927549ac3adb15bc7a33489c211a6b646d5 (patch) | |
tree | a06c5428be836c81303aaf664ab480a4964f28ab /gcc/bitmap.h | |
parent | 27da057af3571d6bf84eb19052d6a05db6f360a0 (diff) | |
download | gcc-tbsaunde/bitmap.tar.gz |
kill bitmap_and_intotbsaunde/bitmap
Diffstat (limited to 'gcc/bitmap.h')
-rw-r--r-- | gcc/bitmap.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/bitmap.h b/gcc/bitmap.h index e17039c1ecb..1ac30e82d8f 100644 --- a/gcc/bitmap.h +++ b/gcc/bitmap.h @@ -200,6 +200,12 @@ struct GTY(()) bitmap_head { return *this; } + bitmap_head &operator&= (const bitmap_head &other) + { + bit_and (other); + return *this; + } + /* Clear a single bit in a bitmap. Return true if the bit changed. */ bool clear_bit (int); @@ -229,6 +235,7 @@ struct GTY(()) bitmap_head { bool bit (int) const; bool bit_or (const bitmap_head &other); + bool bit_and (const bitmap_head &); /* True if two bitmaps are identical. */ bool operator== (const bitmap_head &) const; @@ -268,7 +275,6 @@ extern bool bitmap_intersect_compl_p (const_bitmap, const_bitmap); are three operand versions that to not destroy the source bitmaps. The operations supported are &, & ~, |, ^. */ extern void bitmap_and (bitmap, const_bitmap, const_bitmap); -extern bool bitmap_and_into (bitmap, const_bitmap); extern bool bitmap_and_compl (bitmap, const_bitmap, const_bitmap); extern bool bitmap_and_compl_into (bitmap, const_bitmap); #define bitmap_compl_and(DST, A, B) bitmap_and_compl (DST, B, A) |