typedef unsigned char	uchar;
typedef unsigned int	uint;
typedef unsigned long	ulong;
typedef signed char	schar;
typedef unsigned short	ushort;
typedef unsigned short	Rune;
typedef __int64		vlong;
typedef unsigned __int64		uvlong;
typedef unsigned int	mpdigit;
typedef unsigned int u32int;

#define	USED(x)		if(x);else
#define	SET(x)		x = 0

/*
 * Disable various warnings.  The ones in brackets
 * are ones we have disabled in the past but currently
 * do not.  Mostly they are pedantry that I'd like to
 * get right.
 *
 * 4018 signed/unsigned comparison
 * [4068 unknown pragma]
 * [4090 different volatile quals]
 * [4102 ???]
 * 4244 long to char conversion
 * [4245 signed/unsigned conversion]
 * [4305 ???]
 * 4550 expression evalutes to uncalled function
 * 4761 integral size mismatch in argument; converted
 */
#pragma warning( disable : 4018 4244 4550 4761)

typedef unsigned int	mpdigit;	/* for /sys/include/mp.h */
typedef unsigned int	u32int;

typedef unsigned long pm_jmp_buf[6];	/* bp, bx, di, si, sp, pc */
#define	JMPBUFSP	4
#define	JMPBUFPC	5
#define	JMPBUFDPC	0
int pm_setjmp(pm_jmp_buf);
void pm_longjmp(pm_jmp_buf, int);
#define	pm_assert(x)	if(x){}else pm__assert(# x, __FILE__, __LINE__)

/* FCR */
#define	FPINEX	(1<<5)
#define	FPUNFL	((1<<4)|(1<<1))
#define	FPOVFL	(1<<3)
#define	FPZDIV	(1<<2)
#define	FPINVAL	(1<<0)
#define	FPRNR	(0<<10)
#define	FPRZ	(3<<10)
#define	FPRPINF	(2<<10)
#define	FPRNINF	(1<<10)
#define	FPRMASK	(3<<10)
#define	FPPEXT	(3<<8)
#define	FPPSGL	(0<<8)
#define	FPPDBL	(2<<8)
#define	FPPMASK	(3<<8)
/* FSR */
#define	FPAINEX	FPINEX
#define	FPAOVFL	FPOVFL
#define	FPAUNFL	FPUNFL
#define	FPAZDIV	FPZDIV
#define	FPAINVAL	FPINVAL

#include <stdarg.h>
