home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / compiler / 1842 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  1.2 KB

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