home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sun-barr!sh.wide!wnoc-kyo!kuis!aegis!jroth
- From: jroth@aegis.or.jp (Joel Roth)
- Newsgroups: comp.dcom.modems
- Subject: Re: Efficient CRC routine?
- Keywords: CRC
- Message-ID: <3246@aegis.or.jp>
- Date: 23 Nov 92 14:48:38 GMT
- References: <1394@minya.UUCP> <By5Hrs.GI3@wsrcc.com>
- Sender: daemon@aegis.or.jp
- Lines: 25
-
- wolfgang@wsrcc.com (Wolfgang S. Rupprecht) writes:
-
- >jc@minya.UUCP (John Chambers) writes:
- >>I've generally dismissed the use of CRCs in software, because the only
- >>algorithm I'd seen to generate (or check) them were so incredibly slow
- >>(shifting the bits out of each byte, plugging each into a polynomial,
- >>and all that) that the performance hit was totally out of the range of
- >>acceptability.
-
- [...]
-
- >Its only one or two lines of C depending on how you count it. Any
- >good compiler will render it into 10 or less instructions.
-
- [..]
-
- Some kind soul responded to an earlier query about this with code
- for using a lookup table instead of calculating the values with
- bit-shifting. Happy to post it if you like.
-
- >--
- >Wolfgang Rupprecht wolfgang@wsrcc.com (or) decwrl!wsrcc!wolfgang
- >Snail Mail: 39469 Gallaudet Drive, Fremont, CA 94538-4511
-
- Email to jroth@aegis.org
-