home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!das-news.harvard.edu!spdcc!iecc!compilers-sender
- From: henry@zoo.toronto.edu (Henry Spencer)
- Newsgroups: comp.compilers
- Subject: Re: Constant divisions, remainders
- Keywords: arithmetic, comment
- Message-ID: <92-11-033@comp.compilers>
- Date: 8 Nov 92 04:39:53 GMT
- Article-I.D.: comp.92-11-033
- References: <92-10-075@comp.compilers> <92-11-006@comp.compilers>
- Sender: compilers-sender@iecc.cambridge.ma.us
- Reply-To: henry@zoo.toronto.edu (Henry Spencer)
- Organization: U of Toronto Zoology
- Lines: 14
- Approved: compilers@iecc.cambridge.ma.us
-
- torbenm@diku.dk (Torben AEgidius Mogensen) writes:
- >I think the round-to-zero rule for div and signed mod are relics from ones
- >complement computers, and should be laid to rest.
-
- Actually, I seem to recall that it is specifically a relic of FORTRAN,
- which made a fairly arbitrary decision for the sake of well-defined
- behavior, and has been too influential for machine designers to ignore
- ever since.
- --
- Henry Spencer @ U of Toronto Zoology, henry@zoo.toronto.edu utzoo!henry
- [Probably was based on the instruction set of the IBM 704. -John]
- --
- Send compilers articles to compilers@iecc.cambridge.ma.us or
- {ima | spdcc | world}!iecc!compilers. Meta-mail to compilers-request.
-