home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.compilers
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!wupost!darwin.sura.net!ukma!cs.widener.edu!eff!world!iecc!compilers-sender
- From: chris@gargoyle.uchicago.edu (Chris Johnston)
- Subject: Re: Modulo n arithmetics
- Reply-To: chris@gargoyle.uchicago.edu (Chris Johnston)
- Organization: University of Chicago Computing Organizations
- Date: Thu, 19 Nov 1992 19:49:44 GMT
- Approved: compilers@iecc.cambridge.ma.us
- Message-ID: <92-11-113@comp.compilers>
- References: <92-11-029@comp.compilers>
- Keywords: arithmetic
- Sender: compilers-sender@iecc.cambridge.ma.us
- Lines: 18
-
- fabre@gr.osf.org (Christian Fabre) writes:
- >I am wondering if any languages or application heavily rely on
- >modulo arithmetics:
-
- Some applications...
-
- How about communication, TCP uses 32bit counters to sequence packets, the
- packet following 32 ones is zero. Trading (stocks/futures) cards are
- numbered 000 to 999. Database rows... Any counter that can wrap to zero.
-
- You want to be able to sort items arriving out of order and detect missing
- items. The TCP folk call this sequence space arithemtic. See
- /usr/include/netinet/tcp_seq.h
-
- cj
- --
- Send compilers articles to compilers@iecc.cambridge.ma.us or
- {ima | spdcc | world}!iecc!compilers. Meta-mail to compilers-request.
-