home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / compiler / 2110 < prev    next >
Encoding:
Text File  |  1993-01-07  |  1.0 KB  |  30 lines

  1. Newsgroups: comp.compilers
  2. Path: sparky!uunet!world!iecc!compilers-sender
  3. From: Walter Bright <bright@nazgul.uucp>
  4. Subject: Re: IEEE arithmetic handling
  5. Reply-To: Walter Bright <bright@nazgul.uucp>
  6. Organization: Compilers Central
  7. Date: Thu, 7 Jan 1993 08:10:45 GMT
  8. Approved: compilers@iecc.cambridge.ma.us
  9. Message-ID: <93-01-037@comp.compilers>
  10. Keywords: optimize, arithmetic
  11. References: <92-11-041@comp.compilers>
  12. Sender: compilers-sender@iecc.cambridge.ma.us
  13. Lines: 15
  14.  
  15. jim@meiko.co.uk (James Cownie) writes:
  16. /Another area where IEEE seems never to be implemented correctly by
  17. /compilers is in the handling of Not a Numbers (NaNs). 
  18. /Similarly (and I've never seen this handled right in an optimising
  19. /compilation),
  20. /    IF (X .ne. X) THEN
  21. /            print *,'X is a NaN'
  22. /        ELSE
  23. /            print *,'X is a number'
  24.  
  25. Zortech C/C++ 3.0 does implement and handle these cases correctly,
  26. even when optimized (!)
  27. -- 
  28. Send compilers articles to compilers@iecc.cambridge.ma.us or
  29. {ima | spdcc | world}!iecc!compilers.  Meta-mail to compilers-request.
  30.