[Q] Generic CRC-generation

Dwight Hughes dwighth at ipa.net
Fri Dec 24 05:14:50 UTC 1999


The current link to the paper "A Painless Guide To CRC Error Detection
Algorithms" by Ross N. Williams referenced in the changeset is

ftp://ftp.rocksoft.com/clients/rocksoft/papers/crc_v3.txt

-- Dwight

Maurice Rabb wrote:
> 
> >Does anybody out there have code for generic CRC generation? The
> >implementation does not have to be efficient. I am aware of the
> >16-bit algorithm in the current image, but need to be able to
> >generate CRCs with non-standard polynomials for arbitrary bit length
> >messages. Thanks in advance.
> >
> >Doug McPherson
> 
> Doug--
> 
> I built this last year when I was looking for better ways to generate
> hash values for strings.  16bits was too small.  32bits was too big
> -- it created LargeInts.  30bits was just right -- fits in SmallInts.
> 
> Here you go.
> 
> Enjoy!
> 
> --Maurice
> 
>                           Name: m3r_CRCGenerator.cs
>    m3r_CRCGenerator.cs    Type: Squeak (EditPlus) (application/x-unknown-content-type-EditPlus.7)
>                       Encoding: base64
> 
>   ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------------
>    Maurice Rabb    773.281.6003    Stono Technologies, LLC    Chicago, USA





More information about the Squeak-dev mailing list