This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH]: Efficient sbitmap based bitset


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]