From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8c424d8135e68278 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-23 07:13:52 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Math Update for Ada 2005 Date: 23 Dec 2001 07:13:52 -0800 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0112230713.20fd5963@posting.google.com> References: NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1009120432 17366 127.0.0.1 (23 Dec 2001 15:13:52 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 23 Dec 2001 15:13:52 GMT Xref: archiver1.google.com comp.lang.ada:18258 Date: 2001-12-23T15:13:52+00:00 List-Id: "Steven Deller" wrote in message news:... > All the email about Math libraries reminded me of one of Ada 95's > shortcomings. > > The IEEE math definitions have included NaN and Inf semantics for quite > some time. Many (if not all) native platforms and many embedded > platforms can support this. I have run into C++ and C code that uses > these. Ada 95 does NOT support these. Ada 95 was carefully designed so that support can be added for infinities and Nan's without in anyway violating the RM semantics, and in fact GNAT does support the use of Inf and Nan semantics in full generality, though it does not provide all the IEEE facilities for manipulating such values. These facilities can be added with external packages. For an *extensive* discussion of this entire issue see Sam Figueroa's thesis (NYU, Robert Dewar thesis advisor). This thesis addresses the entire issue of floating-point evaluation schemes in high level languages from an IEEE point of view, and specifically proposes a package and other facilities (pragmas attributes etc) for full support of the IEEE model in Ada 95 in an upwards compatible manner. At least start from Sam's work, don't reinvent the wheel :-)