Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Need routine to convert floating-point from Sun SPARC to DEC MIPS
@ 1991-05-11 12:52 Ralph Becker-Szendy
  0 siblings, 0 replies; only message in thread
From: Ralph Becker-Szendy @ 1991-05-11 12:52 UTC (permalink / 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1991-05-11 12:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1991-05-11 12:52 Need routine to convert floating-point from Sun SPARC to DEC MIPS Ralph Becker-Szendy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox