Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2993413AbXEBPzd (ORCPT ); Wed, 2 May 2007 11:55:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S2993415AbXEBPzc (ORCPT ); Wed, 2 May 2007 11:55:32 -0400 Received: from ug-out-1314.google.com ([66.249.92.168]:25651 "EHLO ug-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2993413AbXEBPzb (ORCPT ); Wed, 2 May 2007 11:55:31 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=S8Nd/ldMjJSKyVgBFYVLBnRoxSJdM5Zt9b2mfVNi9tqre4OGnNOHSAeaDwXEHSZox9+LXwuIrgrc1Dk0Fq3kTGctCfy8Ue1Zc1WDRAPfucuxOTlz0rMzScH4tSD/13yXm1uAk4ezxNjRXPcYX8qVQ7FlqbUP83xqu997okmJiAE= Message-ID: <84144f020705020855q6e68381el899261fa30f60cc4@mail.gmail.com> Date: Wed, 2 May 2007 18:55:29 +0300 From: "Pekka Enberg" To: "Stefan Richter" Subject: Re: [PATCH 1/6] firewire: handling of cards, buses, nodes Cc: linux-kernel@vger.kernel.org, "Kristian H??gsberg" , "Linus Torvalds" , "Andrew Morton" , linux1394-devel , "Christoph Hellwig" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4637A29F.6070302@redhat.com> <20070502090007.GA28174@infradead.org> X-Google-Sender-Auth: af8ff1e029ba7f05 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 754 Lines: 18 On 5/2/07, Stefan Richter wrote: > +/* The lib/crc16.c implementation uses the standard (0x8005) > + * polynomial, but we need the ITU-T (or CCITT) polynomial (0x1021). > + * The implementation below works on an array of host-endian u32 > + * words, assuming they'll be transmited msb first. */ > +u16 > +crc16_itu_t(const u32 *buffer, size_t length) > +{ [snip] So put it in lib/crc-itu-t.c? Btw, there's apparently another ITU-T implementation floating around by Ivo van Doorn. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/