This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Add crc32 function to libiberty
- From: Michael Snyder <msnyder at vmware dot com>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: Ian Lance Taylor <iant at google dot com>, Jim Blandy <jimb at red-bean dot com>, "dj at redhat dot com" <dj at redhat dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Sat, 25 Jul 2009 12:24:13 -0700
- Subject: Re: Add crc32 function to libiberty
- References: <m363dh1yub.fsf@google.com> <200907242331.n6ONVqSl003646@greed.delorie.com> <m3k51xzjbq.fsf@google.com> <83fxcl4491.fsf@gnu.org>
Eli Zaretskii wrote:
Cc: gcc-patches@gcc.gnu.org, gdb-patches@sourceware.org
From: Ian Lance Taylor <iant@google.com>
Date: Fri, 24 Jul 2009 17:40:09 -0700
Does anybody on the gdb side know the polynomial or any other
information?
AFAICS, this was introduced by Jim Blandy. Jim, are can you help us
here?
There may be some confusion here. At least I'm confused.
Jim added gnu_debuglink_crc32() to utils.c in 2003 (to be used
by symfile.c), but I added static ulong crc32() to remote.c some
time around 1997-1998 (argh, there's no changelog entry) while
working on tracepoints.
Ian's new function bears a closer resemblance to the one in
remote.c than to the one in utils.c, other than the fact that
it uses a pre-computed table. I'm not familiar with Jim's
version, and don't know whether they compute the same result.
I'm not seeking credit here -- in fact, I'd prefer to avoid it,
since I frankly don't remember where I came up with the algorithm.
;-(
Michael