bitmap.c tweeks
Mark Mitchell
mark@codesourcery.com
Mon Jul 9 12:21:00 GMT 2001
--On Friday, July 06, 2001 02:28:27 PM -0700 Richard Henderson
<rth@redhat.com> wrote:
> The recent change to use xmalloc is somewhat less than optimal.
> The rest of the routines in the file allocate the temporary
> directly.
>
> Also, the use of EXECUTE_IF_SET_IN_BITMAP to search for the last
> bit in the map -- iterating over every bit to get there, note --
> is the worst way this could be done. I've reimplemented both of
> these search routines to use binary search on the bits.
Cool.
Even though you didn't create these routines, would you be willing
to write some documentation for them? Some of them are comment-free...
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
More information about the Gcc-patches
mailing list