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