forked from Stichting-MINIX-Research-Foundation/minix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFP_shift.h
More file actions
executable file
·49 lines (34 loc) · 990 Bytes
/
Copy pathFP_shift.h
File metadata and controls
executable file
·49 lines (34 loc) · 990 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
(c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.
See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */
/*
include file for floating point package
*/
# define CARRYBIT 0x80000000L
# define NORMBIT 0x80000000L
# define EXP_STORE 16
/* parameters for Single Precision */
#define SGL_EXPSHIFT 7
#define SGL_M1LEFT 8
#define SGL_ZERO 0xffffff80L
#define SGL_EXACT 0xff
#define SGL_RUNPACK SGL_M1LEFT
#define SGL_ROUNDUP 0x80
#define SGL_CARRYOUT 0x01000000L
#define SGL_MASK 0x007fffffL
/* parameters for Double Precision */
/* used in extend.c */
#define DBL_EXPSHIFT 4
#define DBL_M1LEFT 11
#define DBL_RPACK (32-DBL_M1LEFT)
#define DBL_LPACK DBL_M1LEFT
/* used in compact.c */
#define DBL_ZERO 0xfffffd00L
#define DBL_EXACT 0x7ff
#define DBL_RUNPACK DBL_M1LEFT
#define DBL_LUNPACK (32-DBL_RUNPACK)
#define DBL_ROUNDUP 0x400
#define DBL_CARRYOUT 0x00200000L
#define DBL_MASK 0x000fffffL