From: ralph@uhheph.phys.hawaii.edu (Ralph Becker-Szendy)
Subject: Need routine to convert floating-point from Sun SPARC to DEC MIPS
Date: 11 May 91 12:52:40 GMT [thread overview]
Message-ID: <12984@uhccux.uhcc.Hawaii.Edu> (raw)
The subject line says it all. I need a subroutine (in FORTRAN or better in C)
which converts the 32-bit floating point format from a Sun SPARC into DEC
MIPS format. The opposite direction would be neat too, but is not vital at
this point. The byte-swapping has already been done (pretending the number
was a 32-bit integer), but I can trivially undo that. If it matters, what we
are really talking about are FORTRAN REAL*4 numbers stored UNFORMATTED in a
file.
I know about the option to have the DEC MIPS FORTRAN runt-time-library do the
conversion (there is some keyword in the file OPEN statement which declares
this file to be automatically converted during unformatted IO), but we are
still at Ultrix V4.0, so I guess we don't have that version of the FORTRAN
compiler quite yet.
I hope such a routine could be found in the manual set somewhere, but at
least not in the places I checked.
--
Ralph Becker-Szendy UHHEPG=24742::RALPH (HEPNet,SPAN)
University of Hawaii RALPH@UHHEPG.PHYS.HAWAII.EDU
High Energy Physics Group RALPH@UHHEPG.BITNET
Watanabe Hall #203, 2505 Correa Road, Honolulu, HI 96822 (808)956-2931
reply other threads:[~1991-05-11 12:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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