This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Add crc32 function to libiberty
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org, gdb-patches at sourceware dot org, dj at redhat dot com
- Date: Fri, 24 Jul 2009 17:23:46 -0700
- Subject: Re: Add crc32 function to libiberty
- References: <m363dh1yub.fsf@google.com>
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.