RealConvert.mesa
Copyright © 1985 by Xerox Corporation. All rights reserved.
Russ Atkinson (RRA) February 19, 1985 4:15:16 pm PST
Doug Wyatt, February 25, 1985 2:35:59 pm PST
RealConvert: CEDAR DEFINITIONS
= BEGIN
Ieee Floating point format is the Mesa 6 standard. These procedures convert from previous formats (BCPL and Mesa 5) to the new format and also convert new format numbers back to bcpl format. (Press files use the bcpl format).
CVError: ERROR; -- Signalled on impossible conversion in IeeeToBcpl
Mesa5Real: TYPE = RECORD[LONG CARDINAL];
Not really LONG CARDINAL, but the user should be able to cope.
BcplReal: TYPE = RECORD[LONG CARDINAL];
Not really LONG CARDINAL, but the user should be able to cope.
Mesa5ToIeee: PROC [a: Mesa5Real] RETURNS [b: REAL];
The following procedures swap the two words as well as change the bit formats.
BcplToIeee: PROC [a: BcplReal] RETURNS [b: REAL];
IeeeToBcpl: PROC [a: REAL] RETURNS [b: BcplReal];
END.
August 13, 1980 3:17 PM, LStewart; modified from RealOps.mesa
August 25, 1980 1:25 PM, LStewart; Added CVError