Rev | Line | |
---|
[9] | 1 | /*
|
---|
| 2 | (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
---|
| 3 | See the copyright notice in the ACK home directory, in the file "Copyright".
|
---|
| 4 | */
|
---|
| 5 |
|
---|
| 6 | /* $Header: /cvsup/minix/src/lib/ack/fphook/FP_shift.h,v 1.1 2005/10/10 15:27:43 beng Exp $ */
|
---|
| 7 |
|
---|
| 8 | /*
|
---|
| 9 | include file for floating point package
|
---|
| 10 | */
|
---|
| 11 |
|
---|
| 12 | # define CARRYBIT 0x80000000L
|
---|
| 13 | # define NORMBIT 0x80000000L
|
---|
| 14 | # define EXP_STORE 16
|
---|
| 15 |
|
---|
| 16 |
|
---|
| 17 | /* parameters for Single Precision */
|
---|
| 18 | #define SGL_EXPSHIFT 7
|
---|
| 19 | #define SGL_M1LEFT 8
|
---|
| 20 | #define SGL_ZERO 0xffffff80L
|
---|
| 21 | #define SGL_EXACT 0xff
|
---|
| 22 | #define SGL_RUNPACK SGL_M1LEFT
|
---|
| 23 |
|
---|
| 24 | #define SGL_ROUNDUP 0x80
|
---|
| 25 | #define SGL_CARRYOUT 0x01000000L
|
---|
| 26 | #define SGL_MASK 0x007fffffL
|
---|
| 27 |
|
---|
| 28 | /* parameters for Double Precision */
|
---|
| 29 | /* used in extend.c */
|
---|
| 30 |
|
---|
| 31 | #define DBL_EXPSHIFT 4
|
---|
| 32 |
|
---|
| 33 | #define DBL_M1LEFT 11
|
---|
| 34 |
|
---|
| 35 | #define DBL_RPACK (32-DBL_M1LEFT)
|
---|
| 36 | #define DBL_LPACK DBL_M1LEFT
|
---|
| 37 |
|
---|
| 38 | /* used in compact.c */
|
---|
| 39 |
|
---|
| 40 | #define DBL_ZERO 0xfffffd00L
|
---|
| 41 |
|
---|
| 42 | #define DBL_EXACT 0x7ff
|
---|
| 43 |
|
---|
| 44 | #define DBL_RUNPACK DBL_M1LEFT
|
---|
| 45 | #define DBL_LUNPACK (32-DBL_RUNPACK)
|
---|
| 46 |
|
---|
| 47 | #define DBL_ROUNDUP 0x400
|
---|
| 48 | #define DBL_CARRYOUT 0x00200000L
|
---|
| 49 | #define DBL_MASK 0x000fffffL
|
---|
Note:
See
TracBrowser
for help on using the repository browser.