Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: lionel@mail.dec.com (Steve Lionel)
Subject: Re: DEC Unix 4.0 IEEE floating point on Alpha
Date: 1997/07/25	[thread overview]
Message-ID: <5raf7o$d75@usenet.pa.dec.com> (raw)
In-Reply-To: 1997Jul24.122022.1@sldb4.slac.stanford.edu



In article <1997Jul24.122022.1@sldb4.slac.stanford.edu>, 
fairfield@sldb4.slac.stanford.edu writes:
|>        Perhaps a better solution is to use the "convert float" routines
|>    available on DU (and OpenVMS).  Sorry  that I can't recall the exact
|>    name  on DU; its a run-time library routine called CVT$CONVERT_FLOAT
|>    on OVMS.  By using this routine for all input and output  of  binary
|>    data,  you  can  maintain  a  single  external  source  form,  e.g.,
|>    big-endian  &  IEEE  floats,  etc.    The  routine  does  many  more
|>    conversions than these, but for the problem at hand...

The DIGITAL UNIX routine is cvt_ftof.  There's a man page for it.  Unlike
CVT$CONVERT_FLOAT, it will convert between little-endian and big-endian
IEEE.  (CVT$CONVERT_FLOAT will convert between any OTHER of the supported
datatypes and big-endian IEEE, but won't do the simple byte-swapping!)
-- 
Steve Lionel                      mailto:lionel@mail.dec.com
Fortran Development               http://www.digital.com/info/slionel.html
Digital Equipment Corporation     
110 Spit Brook Road, ZKO2-3/N30    
Nashua, NH 03062-2698             "Free advice is worth every cent"

For information on DIGITAL Fortran, see http://www.digital.com/fortran



  reply	other threads:[~1997-07-25  4:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-07-23  4:00 DEC Unix 4.0 IEEE floating point on Alpha James Nau
1997-07-23  4:00 ` Paul DeMone
1997-07-24  4:00   ` Emmanuel Choquet
1997-07-24  4:00 ` A.Arnold
1997-07-24  4:00   ` fairfield
1997-07-25  4:00     ` Steve Lionel [this message]
1997-07-24  4:00 ` Jim Griffin
1997-07-26  4:00   ` John Hascall
1997-08-05  4:00   ` Eugene Y C Chu
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