1: /*
2: * Copyright (c) 1986 Regents of the University of California.
3: * All rights reserved. The Berkeley software License Agreement
4: * specifies the terms and conditions for redistribution.
5: *
6: * @(#)fperr.h 1.2 (2.11BSD) 1997/8/28
7: */
8:
9: /*
10: * Structure of the floating point error register save/return
11: */
12: struct fperr {
13: short f_fec;
14: caddr_t f_fea;
15: };
16:
17: /*
18: * These are not used any where and are present here merely for reference.
19: * All the of the VAX oriented FP codes were removed from signal.h and the
20: * kernel. The kernel now passes the unaltered contents of the FEC register to
21: * the application. The values below were taken from the PDP-11/70 processor
22: * handbook.
23: */
24:
25: #ifdef notnow
26: #define FPE_OPCODE_TRAP 0x2 /* Bad FP opcode */
27: #define FPE_FLTDIV_TRAP 0x4 /* FP divide by zero */
28: #define FPE_INTOVF_TRAP 0x6 /* FP to INT overflow */
29: #define FPE_FLTOVF_TRAP 0x8 /* FP overflow */
30: #define FPE_FLTUND_TRAP 0xa /* FP underflow */
31: #define FPE_UNDEF_TRAP 0xc /* FP Undefined variable */
32: #define FPE_MAINT_TRAP 0xe /* FP Maint trap */
33: #endif /* notnow */
Defined struct's
fperr
defined in line
12; used 4 times
Defined macros
Usage of this include