From: "Douglas A. Gwyn" <DAGwyn@null.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] snap checksum
Date: Wed, 16 Jan 2008 09:43:04 +0000 [thread overview]
Message-ID: <478D1CF9.47DE6163@null.net> (raw)
In-Reply-To: <20080112190615.5E7541E8C3A@holo.morphisms.net>
> sumr computes the same function as
> plan 9's sum -r, which is also the same function as
> seventh edition's sum. i have always assumed the -r
> stood for "research" as in research unix, although
> the plan 9 manual describes it as "system v's sum -r" and
> other manuals describe it as the "historical bsd algorithm."
> it does seem to have appeared first in v7.
The "-r" option was added to the System V "sum", which
by default actually does a true modulo 2^16 sum of the bytes,
to obtain the Research version. However, I think the "r"
may have been meant as a mnemonic for "rotating" rather
than "Research"; the "-r" algorithm rotates the accumulator
as the bytes are added to it.
Of course neither of these is as reliable as a polynomial-
based (feedback shift register) checksum for actual
checksumming applications.
next prev parent reply other threads:[~2008-01-16 9:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-12 19:06 Russ Cox
2008-01-12 19:30 ` erik quanstrom
2008-01-16 9:43 ` Douglas A. Gwyn [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-01-11 19:39 erik quanstrom
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=478D1CF9.47DE6163@null.net \
--to=dagwyn@null.net \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).