This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: Add crc32 function to libiberty


On Fri, Jul 24, 2009 at 3:49 PM, Ian Lance Taylor<iant@google.com> wrote:
> Some upcoming work in gold (by Sriraman Tallam) requires a CRC function.
> I could add a CRC function to gold, but I think it makes sense to add it
> to libiberty instead. ?This CRC function is a copy of the one in gdb,
> except that the table of constants is precomputed. ?The gdb maintainers
> may want to consider switching to this version--I don't think 1K of
> read-only data space is all that much these days.
>
> I am running a bootstrap on x86_64-unknown-linux-gnu and plan to commit
> this shortly.
>
> Ian
>
>
> include/ChangeLog:
>
> 2009-07-24 ?Ian Lance Taylor ?<iant@google.com>
>
> ? ? ? ?* libiberty.h (crc32): Declare.
>
> libiberty/ChangeLog:
>
> 2009-07-24 ?Ian Lance Taylor ?<iant@google.com>
>
> ? ? ? ?* crc32.c: New file.
> ? ? ? ?* Makefile.in: Rebuild dependencies.
> ? ? ? ?(CFILES): Add crc32.c.
> ? ? ? ?(REQUIRED_OFILES): Add ./crc32.o.
> ? ? ? ?* functions.texi: Rebuild.

Is that possible to use a compatible polynomia so that hardware
crc32 in SSE4.2 can be used if available?

Thanks.


-- 
H.J.


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