- /* disable the warning about 'possible loss of data' & 'conversion between
- * diff types' */
-#ifdef _MSC_VER
-#pragma warning(disable: 4244)
-#pragma warning(disable: 4135)
-#endif /* Visual C++ */
-
- bytes[0] = (expon >> 8) & 0xff;
- bytes[1] = expon & 0xff;
- bytes[2] = (unsigned char) ((hiMant >> 24) & 0xff);
- bytes[3] = (unsigned char) ((hiMant >> 16) & 0xff);
- bytes[4] = (unsigned char) ((hiMant >> 8) & 0xff);
- bytes[5] = (unsigned char) (hiMant & 0xff);
- bytes[6] = (unsigned char) ((loMant >> 24) & 0xff);
- bytes[7] = (unsigned char) ((loMant >> 16) & 0xff);
- bytes[8] = (unsigned char) ((loMant >> 8) & 0xff);
- bytes[9] = (unsigned char) (loMant & 0xff);
-
-#ifdef _MSC_VER
-#pragma warning(default: 4244)
-#pragma warning(default: 4135)
-#endif /* Visual C++ */
-}
-
-/*
- * C O N V E R T F R O M I E E E E X T E N D E D
- */
-
-/*
- * Copyright (C) 1988-1991 Apple Computer, Inc.
- * All rights reserved.
- *
- * Machine-independent I/O routines for IEEE floating-point numbers.
- *
- * NaN's and infinities are converted to HUGE_VAL or HUGE, which
- * happens to be infinity on IEEE machines. Unfortunately, it is
- * impossible to preserve NaN's in a machine-independent way.
- * Infinities are, however, preserved on IEEE machines.
- *
- * These routines have been tested on the following machines:
- * Apple Macintosh, MPW 3.1 C compiler
- * Apple Macintosh, THINK C compiler
- * Silicon Graphics IRIS, MIPS compiler
- * Cray X/MP and Y/MP
- * Digital Equipment VAX
- *
- *
- * Implemented by Malcolm Slaney and Ken Turkowski.
- *
- * Malcolm Slaney contributions during 1988-1990 include big- and little-
- * endian file I/O, conversion to and from Motorola's extended 80-bit
- * floating-point format, and conversions to and from IEEE single-
- * precision floating-point format.
- *
- * In 1991, Ken Turkowski implemented the conversions to and from
- * IEEE double-precision format, added more precision to the extended
- * conversions, and accommodated conversions involving +/- infinity,
- * NaN's, and denormalized numbers.
- */
-
-#ifndef HUGE_VAL
-# define HUGE_VAL HUGE
-#endif /*HUGE_VAL*/
-
-# define UnsignedToFloat(u) (((double) ((long) (u - 2147483647L - 1))) + 2147483648.0)