This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH]: Efficient sbitmap based bitset
- To: Daniel Berlin <dan at cgsoftware dot com>
- Subject: Re: [PATCH]: Efficient sbitmap based bitset
- From: Matt Kraai <kraai at alumni dot carnegiemellon dot edu>
- Date: Mon, 20 Aug 2001 08:55:56 -0600
- Cc: gcc-patches at gcc dot gnu dot org
Howdy,
I have two questions about your patch.
> + /* Copy the ebitmap at FROM into the ebitmap at TO */
> + void
> + ebitmap_copy (to, from)
> + ebitmap to;
> + ebitmap from;
> + {
> + unsigned int i;
> + ebitmap_clear (to);
> + ebitmap_free_if_shrink (to, VARRAY_SIZE (to->array),
> + VARRAY_SIZE (from->array));
Why do you need to call ebitmap_free_if_shrink after calling
ebitmap_clear?
Also, in the ebitmap_a_OP_b family of functions, does the return
value need to be accurate, or is it just a hint?
Matt