Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #14930 > unrolled thread

computing 64 bit crc on a 32 bit compiler

Started byBING BANG <bing1351@gmail.com>
First post2012-03-14 14:52 -0700
Last post2012-03-15 17:55 +0000
Articles 4 — 4 participants

Back to article view | Back to comp.lang.c++


Contents

  computing 64 bit crc on a 32 bit compiler BING BANG <bing1351@gmail.com> - 2012-03-14 14:52 -0700
    Re: computing 64 bit crc on a 32 bit compiler Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-03-14 23:13 +0000
    Re: computing 64 bit crc on a 32 bit compiler glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2012-03-15 00:30 +0000
    Re: computing 64 bit crc on a 32 bit compiler "Bill Davy" <Bill@SynectixLtd.com> - 2012-03-15 17:55 +0000

#14930 — computing 64 bit crc on a 32 bit compiler

FromBING BANG <bing1351@gmail.com>
Date2012-03-14 14:52 -0700
Subjectcomputing 64 bit crc on a 32 bit compiler
Message-ID<f9ff9705-02ea-433b-a827-85a6e5ba6561@g16g2000yqe.googlegroups.com>
Any body know where I might find such code?

[toc] | [next] | [standalone]


#14931

FromJorgen Grahn <grahn+nntp@snipabacken.se>
Date2012-03-14 23:13 +0000
Message-ID<slrnjm29hl.1ls.grahn+nntp@frailea.sa.invalid>
In reply to#14930
On Wed, 2012-03-14, BING BANG wrote:
> Any body know where I might find such code?

First read the Wikipedia article for "Cyclic redundancy check". Then
you'll notice there are at least two different 64-bit CRCs in use; you
have to decide which one you want.

/Jorgen

-- 
  // Jorgen Grahn <grahn@  Oo  o.   .     .
\X/     snipabacken.se>   O  o   .

[toc] | [prev] | [next] | [standalone]


#14933

Fromglen herrmannsfeldt <gah@ugcs.caltech.edu>
Date2012-03-15 00:30 +0000
Message-ID<jjrd6s$pni$2@speranza.aioe.org>
In reply to#14930
BING BANG <bing1351@gmail.com> wrote:
> Any body know where I might find such code?

The only 64 bit CRC polynomial that I know of is very easy to
do on 32 bit machines, as it has no terms in the upper half.

Otherwise, it takes a little work to get the shifts to work right, 
but isn't really all that hard to do.

-- glen

[toc] | [prev] | [next] | [standalone]


#14942

From"Bill Davy" <Bill@SynectixLtd.com>
Date2012-03-15 17:55 +0000
Message-ID<9seomrFs40U1@mid.individual.net>
In reply to#14930
"BING BANG" <bing1351@gmail.com> wrote in message 
news:f9ff9705-02ea-433b-a827-85a6e5ba6561@g16g2000yqe.googlegroups.com...
> Any body know where I might find such code?


http://www.tty1.net/pycrc/

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.c++


csiph-web