COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

	Copyright (c) GeoWorks 1991 -- All Rights Reserved

PROJECT:	PC GEOS
MODULE:		
FILE:		math.def

AUTHOR:		Benson M. Tang

REVISION HISTORY:
	Name	Date		Description
	----	----		-----------
	BMT	3/ 2/92		Initial version.

DESCRIPTION:
	

	$Id: intX87.def,v 1.1 97/04/04 14:23:34 newdeal Exp $

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@

SetDef	__intX87

StartLibrary	intX87


ControlWord	record
	:3
	CW_INFINITY_CONTROL:1
	CW_ROUND_CONTROL:2
	CW_PRECISION_CONTROL:2
	CW_INTERRUPT_ENABLE:1
	:1
	CW_EXCEPTION_FLAGS:6
ControlWord	end

RoundControl	etype byte ,0
RC_NEAREST_OR_EVEN	enum 	RoundControl
RC_DOWN			enum	RoundControl
RC_UP			enum	RoundControl
RC_CHOP			enum	RoundControl

PrecisionControl	etype	byte, 0
PC_24_BITS		enum	PrecisionControl
PC_RESERVED		enum	PrecisionControl
PC_53_BITS		enum	PrecisionControl
PC_64_BITS		enum	PrecisionControl

ExceptionFlags		etype	byte, 0
EF_INVALID_OPERATION		enum	ExceptionFlags, 1
EF_DENORMALIZED_OPERAND		enum	ExceptionFlags, 2
EF_ZERO_DIVIDE			enum	ExceptionFlags, 4
EF_OVERFLOW			enum	ExceptionFlags,	8
EF_UNDERFLOW			enum	ExceptionFlags, 16
EF_PRECISION			enum	ExceptionFlags, 32

StatusWord	record
	SW_BUSY:1
	SW_CONDITION_CODE_3:1
	SW_STACK_TOP:3
	SW_CONDITION_CODE_2:1
	SW_CONDITION_CODE_1:1
	SW_CONDITION_CODE_0:1
	SW_EXCEPTION_SUMMARY:1
	SW_STACK_FAULT:1
	SW_PRECISION:1
	SW_UNDERFLOW:1
	SW_OVERFLOW:1
	SW_ZERO_DIVIDE:1
	SW_DENORMALIZED_OPERAND:1
	SW_INVALIDE_OPERATION:1
StatusWord	end


INTEL_STACK_SIZE = 8
INTEL_ENV_SIZE = 94

EndLibrary	intX87

