Sun (etc) ieee -> DS ieee

Kurt Hoyt hoyt at wreck.alf.dec.com
Wed Nov 28 01:29:00 AEST 1990


In article <1395 at mpirbn.mpifr-bonn.mpg.de>, p554mve at mpirbn.mpifr-bonn.mpg.de
(Michael van Elst) writes:
|> In article <1990Nov24.201244.7225 at ircam.fr> mf at ircam.fr (Michel Fingerhut)
writes:
|> >Use xdr - library routines for external data representation.
|> 
|> Except for xdr_float/xdr_double is broken in Ultrix3.1

This problem has been fixed in ULTRIX 4.0. The xdr_float.c file has ifdefs
to tell it whether you are using VAX or IEEE floating point. In xdr_float
and xdr_double, the floating point format was determined by this construct:

	#ifdef mc68000
		...IEEE code...
	#else
		...VAX code...
	#endif

If you weren't a Motorola 68000, the routine thought you were a VAX. Since the
MIPS chip is not a 68000, xdr_float incorrectly considered it a VAX.

--
Kurt in Atlanta         | Atlanta
hoyt at decatl.alf.dec.com | Site of the 1996 Olympics
hoyt at wreck.alf.dec.com  |  



More information about the Comp.unix.ultrix mailing list