blob: 9709e3aa2705c3c23d7b11bfb361cc5dc365d448 (
plain)
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
|
/* $OpenBSD: math_emu.h,v 1.1 1996/08/27 10:32:52 downsj Exp $ */
/*
*
* $FreeBSD: math_emu.h,v 1.2 1994/04/29 21:23:24 gclarkii Exp $
*
*/
#ifndef _MATH_EMU_H
#define _MATH_EMU_H
struct fpu_reg {
char sign;
char tag;
long exp;
u_long sigl;
u_long sigh;
};
union i387_union {
struct i387_hard_struct {
long cwd;
long swd;
long twd;
long fip;
long fcs;
long foo;
long fos;
long st_space[20]; /* 8*10 bytes for each FP-reg = 80
* bytes */
} hard;
struct i387_soft_struct {
long cwd;
long swd;
long twd;
long fip;
long fcs;
long foo;
long fos;
long top;
struct fpu_reg regs[8]; /* 8*16 bytes for each FP-reg = 128
* bytes */
unsigned char lookahead;
struct trapframe *frame;
unsigned long entry_eip;
int orig_eip;
} soft;
};
#endif
|