xref: /original-bsd/sys/tahoe/math/fp.h (revision 7f3e12df)
1 /*-
2  * Copyright (c) 1985 The Regents of the University of California.
3  * All rights reserved.
4  *
5  * This code is derived from software contributed to Berkeley by
6  * Computer Consoles Inc.
7  *
8  * %sccs.include.redist.c%
9  *
10  *	@(#)fp.h	7.1 (Berkeley) 12/06/90
11  */
12 
13 #define	EXPMASK		0x7f800000
14 #define	SIGNBIT		0x80000000
15 #define	ONE_EXP		0x40800000
16 #define	TWO_EXP		0x40000000
17 #define	EXPSHIFT	23
18 #define	HID_POS		24
19 #define	HID_R0R1	24+32
20 #define	CLEARHID	0xff7fffff
21 #define	EXPSIGN		0x40000000
22 #define	MAX_EXP_DIF	55
23 #define	SMAX_EXP_DIF	23
24 #define	BIAS		0x80
25 #define	BIASP1		0x81
26 #define	BIASM1		0x7f
27 #define	HUGE0		0x7fffffff
28 #define	HUGE1		0xffffffff
29