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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8200c5d9633351c4 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!g43g2000cwa.googlegroups.com!not-for-mail From: "=?iso-8859-1?B?Qmr2cm4=?=" Newsgroups: comp.lang.ada Subject: Re: How to byte swap an IEEE Float? Date: 29 Jun 2005 03:00:26 -0700 Organization: http://groups.google.com Message-ID: <1120039226.101013.221510@g43g2000cwa.googlegroups.com> References: <1119966822.201891.303810@g49g2000cwa.googlegroups.com> NNTP-Posting-Host: 213.114.86.167 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1120039232 1403 127.0.0.1 (29 Jun 2005 10:00:32 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 29 Jun 2005 10:00:32 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: g43g2000cwa.googlegroups.com; posting-host=213.114.86.167; posting-account=XtH-7w0AAAD9fnmY345GWHA6uyNTbG5H Xref: g2news1.google.com comp.lang.ada:11723 Date: 2005-06-29T03:00:26-07:00 List-Id: > See SAL.Network_Order.Gen_Scalar_64 at > http://www.toadmail.com/~ada_wizard/ada/sal.html for a convenient way > to do this. Thanks! I will check it out. > Hmm. Are you saying the original value is _not_ a NaN? If so, then > your swap implementation is faulty; try mine. No the original value _is_ a NaN when read as a float on x86 (the subject on this thread was perhaps a bit misleading) BR Bj=F6rn