BSD 4_4 release
[unix-history] / usr / src / usr.bin / f77 / pass1.vax / conv.h
/*-
* Copyright (c) 1980 The Regents of the University of California.
* All rights reserved.
*
* This module is believed to contain source code proprietary to AT&T.
* Use and redistribution is subject to the Berkeley Software License
* Agreement and your Software Agreement with AT&T (Western Electric).
*
* @(#)conv.h 5.2 (Berkeley) 4/12/91
*/
#if (HERE != VAX || TARGET != VAX)
}}}}} WRONG MACHINE!!! }}}}}
#endif
/* The code for converting the types of constants is not */
/* portable. The problems involved in dealing with */
/* features such as reserved operands and byte orderings */
/* have proven very difficult to deal with in a portable */
/* manner. Because of impending deadlines, I have put */
/* off trying to achieve portability. */
/* */
/* -Robert Paul Corbett */
/* 1983 May 1 */
#define BLANK ' '
#define MAXWORD 32767
#define MINWORD -32768
typedef
struct Dreal
{
unsigned fract1: 7;
unsigned exp: 8;
unsigned sign: 1;
unsigned fract2: 16;
unsigned fract3: 16;
unsigned fract4: 16;
}
dreal;
typedef
struct Quad
{
long word1;
long word2;
}
quad;
typedef
union RealValue
{
double d;
quad q;
dreal f;
}
realvalue;