xref: /csrg-svn/sys/tahoe/math/fp.h (revision 45761)
1*45761Sbostic /*-
2*45761Sbostic  * Copyright (c) 1985 The Regents of the University of California.
3*45761Sbostic  * All rights reserved.
4*45761Sbostic  *
5*45761Sbostic  * This code is derived from software contributed to Berkeley by
6*45761Sbostic  * Computer Consoles Inc.
7*45761Sbostic  *
8*45761Sbostic  * %sccs.include.redist.c%
9*45761Sbostic  *
10*45761Sbostic  *	@(#)fp.h	7.1 (Berkeley) 12/06/90
11*45761Sbostic  */
1224115Ssam 
1325664Ssam #define	EXPMASK		0x7f800000
1425664Ssam #define	SIGNBIT		0x80000000
1525664Ssam #define	ONE_EXP		0x40800000
1625664Ssam #define	TWO_EXP		0x40000000
1725664Ssam #define	EXPSHIFT	23
1825664Ssam #define	HID_POS		24
1925664Ssam #define	HID_R0R1	24+32
2025664Ssam #define	CLEARHID	0xff7fffff
2125664Ssam #define	EXPSIGN		0x40000000
2225664Ssam #define	MAX_EXP_DIF	55
2325664Ssam #define	SMAX_EXP_DIF	23
2425664Ssam #define	BIAS		0x80
2525664Ssam #define	BIASP1		0x81
2625664Ssam #define	BIASM1		0x7f
2725664Ssam #define	HUGE0		0x7fffffff
2825664Ssam #define	HUGE1		0xffffffff
29