-- RealConvert.mesa
-- Last Modified: September 29, 1980  12:02 AM
-- Copyright Xerox Corporation 1980

RealConvert: 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

  Mesa5ToIeee: PROC [a: LONG UNSPECIFIED] RETURNS [b: REAL];

  -- The following procedures swap the two words as well a change
  -- the bit formats.

  BcplToIeee: PROC [a: LONG UNSPECIFIED] RETURNS [b: REAL];

  IeeeToBcpl: PROC [a: REAL] RETURNS [b: LONG UNSPECIFIED];

  END.
August 13, 1980  3:17 PM, LStewart; modified from RealOps.mesa
August 25, 1980  1:25 PM, LStewart; Added CVError