From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24661 invoked by alias); 25 Jul 2009 00:40:30 -0000 Received: (qmail 24646 invoked by uid 22791); 25 Jul 2009 00:40:30 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 25 Jul 2009 00:40:26 +0000 Received: from zps75.corp.google.com (zps75.corp.google.com [172.25.146.75]) by smtp-out.google.com with ESMTP id n6P0eLIg019314 for ; Sat, 25 Jul 2009 01:40:22 +0100 Received: from yxe10 (yxe10.prod.google.com [10.190.2.10]) by zps75.corp.google.com with ESMTP id n6P0eIUd010632 for ; Fri, 24 Jul 2009 17:40:19 -0700 Received: by yxe10 with SMTP id 10so3941924yxe.21 for ; Fri, 24 Jul 2009 17:40:18 -0700 (PDT) Received: by 10.90.63.6 with SMTP id l6mr3407283aga.13.1248482418243; Fri, 24 Jul 2009 17:40:18 -0700 (PDT) Received: from localhost.localdomain.google.com ([67.218.104.36]) by mx.google.com with ESMTPS id 38sm1350889aga.39.2009.07.24.17.40.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 24 Jul 2009 17:40:15 -0700 (PDT) To: DJ Delorie Cc: gcc-patches@gcc.gnu.org, gdb-patches@sourceware.org Subject: Re: Add crc32 function to libiberty References: <200907242331.n6ONVqSl003646@greed.delorie.com> From: Ian Lance Taylor Date: Sat, 25 Jul 2009 06:16:00 -0000 In-Reply-To: <200907242331.n6ONVqSl003646@greed.delorie.com> (DJ Delorie's message of "Fri\, 24 Jul 2009 19\:31\:52 -0400") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-07/txt/msg00617.txt.bz2 DJ Delorie writes: > Please make sure any CRC routines added to libiberty document the > polynomial they use. Referencing a web site that may vanish at any > time is too risky, despite how standard this polynomial happens to be > at the moment. I didn't reference the web site for the polynomial, just for background. To be honest, I'm not sure what the polynomial is. As the comments explain, the algorithm I used is precisely taken from gdb, in remote.c, and is intended to produce the same result. Does anybody on the gdb side know the polynomial or any other information? Ian