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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,544e7f5698c48b7c X-Google-Attributes: gid103376,public From: radke@dsdl.ee.iastate.edu (Kevin Radke) Subject: Re: precise floats Date: 1998/08/12 Message-ID: <6qs99t$pk1$1@news.iastate.edu>#1/1 X-Deja-AN: 380411578 References: <6q7vtb$jk$1@heliodor.xara.net> <6qco5r$v8n$1@nnrp1.dejanews.com> Organization: Iowa State University, Ames, IA USA Newsgroups: comp.lang.ada Date: 1998-08-12T00:00:00+00:00 List-Id: In article , Robert Dewar wrote: >Paul said ... >This type then is most definitely covered by the requirement in B.2(10), >and for an x86 implementation, must be defined in Interfaces. The relevant >definitions from the GNAT version of Interfaces are > > type IEEE_Float_32 is new Short_Float; > pragma Float_Representation (IEEE_Float, IEEE_Float_32); > > type IEEE_Float_64 is new Long_Float; > pragma Float_Representation (IEEE_Float, IEEE_Float_64); > > type IEEE_Extended_Float is new Long_Long_Float; > pragma Float_Representation (IEEE_Float, IEEE_Extended_Float); ... >Note that I have no idea what other Ada compilers do here. All I know is >that the standard mandates the inclusion of the 80-bit format in the >Interfaces definition for a conforming Ada 95 compiler for the x86. >We have already seen that people can get confused when they tell us >what is and what is not in some particular compiler. So you should check >for yourself to make sure that your compiler meets this requirement. It >is indeed a requirement that should be checked by the validation suite, >but in practice this kind of checking is hard. You can parametrize the >validation suite by specifying the maximum fpt precision, but it is >difficult to check that this parametrization is done correctly when >it is machine dependent. It appears Apex 1.0.2b and Green Hills AdaMulti 1.8.8e (both Windows NT native targets) fail to provide an IEEE_Extended_Float as well. (I don't think this Apex version claims validation, however I could be wrong.) Kevin