Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael Snyder <msnyder@vmware.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Ian Lance Taylor <iant@google.com>,
	Jim Blandy <jimb@red-bean.com>,   "dj@redhat.com" <dj@redhat.com>,
	 "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>,
	  "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: Add crc32 function to libiberty
Date: Sat, 25 Jul 2009 20:48:00 -0000	[thread overview]
Message-ID: <4A6B5BDD.80602@vmware.com> (raw)
In-Reply-To: <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


  reply	other threads:[~2009-07-25 19:31 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-24 23:39 Ian Lance Taylor
2009-07-24 23:55 ` DJ Delorie
2009-07-25  6:16   ` Ian Lance Taylor
2009-07-25 15:13     ` Eli Zaretskii
2009-07-25 20:48       ` Michael Snyder [this message]
2009-07-25 20:51         ` Michael Snyder
2009-07-25 22:09           ` Dave Korn
2009-07-26 19:12         ` Jeremy Bennett
2009-08-04 17:36         ` Ping: CRC32 documentation patch Jeremy Bennett
2009-08-04 18:20           ` Eli Zaretskii
2009-08-05 10:24             ` Jeremy Bennett
2009-08-05 17:47               ` Eli Zaretskii
2009-07-25  0:44 ` Add crc32 function to libiberty H.J. Lu
2009-07-25  7:16   ` Ian Lance Taylor
2009-07-26 12:30     ` Frank Ch. Eigler
2009-07-25  7:27 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A6B5BDD.80602@vmware.com \
    --to=msnyder@vmware.com \
    --cc=dj@redhat.com \
    --cc=eliz@gnu.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=iant@google.com \
    --cc=jimb@red-bean.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox