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=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,506514dbbd4d1672 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.180.87.170 with SMTP id az10mr255408wib.0.1354948288470; Fri, 07 Dec 2012 22:31:28 -0800 (PST) Path: i11ni59115wiw.0!nntp.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Q: type matching with IEEE 754 double and Intel endianess Date: Sat, 08 Dec 2012 07:31:27 +0100 Organization: A noiseless patient Spider Message-ID: References: <87c30a6b-cd6b-4f96-b6ea-3358f40c1a54@googlegroups.com> Mime-Version: 1.0 Injection-Date: Sat, 8 Dec 2012 06:31:28 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="709a3b9124d052b085bf6fc3f0a2adab"; logging-data="6716"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX194pQlRNOoycE8EklK1QQhg" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: <87c30a6b-cd6b-4f96-b6ea-3358f40c1a54@googlegroups.com> Cancel-Lock: sha1:AnLThzZxMJvWFpqn/Vg0hto1UaA= X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Date: 2012-12-08T07:31:27+01:00 List-Id: Le 07/12/2012 09:54, gautier_niouzes@hotmail.com a �crit : > Now, assume the program is running on a machine where Long_Float is actually IEEE_754, and endianess is the Intel one. > Is there a "solid" way to prove with some check that it is the case ? Uncheck_Convert it to an array of bits, and compare against the expected pattern. Unchecked_Conversion is precisely for that: getting at the underlying representation -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr