From: kferg@vpnet.chi.il.us (Kevin Ferguson)
Subject: Re: "byte sex" or "endian" conversion program
Date: Fri, 8 Oct 1993 20:33:18 GMT [thread overview]
Message-ID: <1993Oct8.203318.18135@vpnet.chi.il.us> (raw)
In-Reply-To: 28pio0$sgh@jac.nuo.dec.com
In article <28pio0$sgh@jac.nuo.dec.com>,
Steve Lionel <lionel@quark.enet.dec.com> wrote:
[...snip...]
>
>If you're dealing with converting floating-point data between a
>big-endian IEEE system and VAX, you'll need to swap the byte order of
>integers and do a big-endian-IEEE-to-VAX floating conversion.
[...snip...]
I have a question regarding the IEEE-to-VAX F_floating point conversion.
I was recently presented with a pair of routines that
supposedly performed this conversion in each direction. The
amazing thing was (to me anyway) that they obtained the VAX
float format by swapping bytes as you indicated and then
just multiplying by 4. <jaw hits floor>
I was under the inpression that, due to the different
normalized forms of both the exponent and mantissa, the
conversion was more involved than that.
If memory serves me right (I don't have a copy of IEEE-754),
IEEE format uses an excess-127 form for its exponent and represents
the most-significant fraction bit. The VAX F_floating point uses
an excess-128 form and the most-significant fraction bit is
implicitly assumed.
Am I missing something here?
TiA,
kevin ferguson (sorely confused)
--
"Face piles of trials with smiles.
Kevin Ferguson It riles them to believe that
kferg@vpnet.chi.il.us you perceive the web they weave."
- Moody Blues
next prev parent reply other threads:[~1993-10-08 20:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-10-02 21:25 "byte sex" or "endian" conversion program Greg Sandell
1993-10-03 14:56 ` Charles M Richmond
1993-10-04 4:33 ` Thad P Floryan
1993-10-04 16:24 ` Steve Lionel
1993-10-08 20:33 ` Kevin Ferguson [this message]
1993-10-09 1:49 ` fairfield
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox