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]
Other format: [Raw text]

Re: moving two speedups to 3.3 branch


Mike Stump wrote:

2003-01-25  Segher Boessenkool  <segher@koffie.nl>

    * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
    type for bitmaps.  Use unsigned long.
    (nBITMAP_WORD_BITS): New macro.
    (BITMAP_WORD_BITS): New macro.
    (rest of file): Use it.
    * bitmap.c: Use it.

I'd like these two for performance reasons. If Segher or Richard knows of any reason why this would be bad, let us know.
Just be sure to not forget Richard's obvious fix for this patch:
Quoting him:

> Note that
>
> > -   if (word & ~ (unsigned HOST_WIDE_INT) 0xffffffff)
> > +   if (word & ~0xffffffff)
>
> is incorrect.  The cast is still required for 64-bit hosts.
> I replaced it during the commit.


Thanks,

Segher



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