From: gbcacm@ccs.neu.edu (Peter Sherwood)
Subject: Re: VAX double-precision format
Date: 1995/07/02 [thread overview]
Message-ID: <3t76s0$7mc@camelot.ccs.neu.edu> (raw)
In-Reply-To: 3t15tm$43t@westie.mid.net
Mike Unverferth (mju@tnt) wrote:
: I have some data files containing values in VAX double-precision.
: I need to convert these values to Intel (IEEE) floating-point.
: Can someone provide the format and/or C code to do the conversion?
The format (D_floating"), is on page 35 of the VAX Architecture Handbook,
and also available in other publications that describe the VAX instruction
set, possibly even in on-line HELP MACRO. The 64-bit data is stored in 4
16-bit words as
sign | 8-bit excess-128 2's exponent | 7-bit ms fraction with 'hidden' bit
16-bit ms-1 fraction
16-bit ms-2 fraction
16-bit ls fraction
-----------------------------------------------------------------------------
Peter Sherwood
(617) 332-8880 (voice)
(617) 969-2101 (fax)
gbcacm@ccs.neu.edu
-----------------------------------------------------------------------------
next prev parent reply other threads:[~1995-07-02 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-06-30 4:00 VAX double-precision format Mike Unverferth
1995-07-02 4:00 ` Peter Sherwood [this message]
1995-07-03 4:00 ` 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