This source file includes following definitions.
- fadd__
- fmul__
- fsub__
- fsubr_
- fdiv__
- fdivr_
- fadd_i
- fmul_i
- fsubri
- fsub_i
- fdivri
- fdiv_i
- faddp_
- fmulp_
- fsubrp
- fsubp_
- fdivrp
- fdivp_
1
2
3
4
5
6
7
8
9
10
11
12 #include "fpu_system.h"
13 #include "fpu_emu.h"
14
15
16 void fadd__()
17 {
18
19 reg_add(FPU_st0_ptr, &st(FPU_rm), FPU_st0_ptr);
20 }
21
22
23 void fmul__()
24 {
25
26 reg_mul(FPU_st0_ptr, &st(FPU_rm), FPU_st0_ptr);
27 }
28
29
30
31 void fsub__()
32 {
33
34 reg_sub(FPU_st0_ptr, &st(FPU_rm), FPU_st0_ptr);
35 }
36
37
38 void fsubr_()
39 {
40
41 reg_sub(&st(FPU_rm), FPU_st0_ptr, FPU_st0_ptr);
42 }
43
44
45 void fdiv__()
46 {
47
48 reg_div(FPU_st0_ptr, &st(FPU_rm), FPU_st0_ptr);
49 }
50
51
52 void fdivr_()
53 {
54
55 reg_div(&st(FPU_rm), FPU_st0_ptr, FPU_st0_ptr);
56 }
57
58
59
60 void fadd_i()
61 {
62
63 reg_add(FPU_st0_ptr, &st(FPU_rm), &st(FPU_rm));
64 }
65
66
67 void fmul_i()
68 {
69
70 reg_mul(&st(FPU_rm), FPU_st0_ptr, &st(FPU_rm));
71 }
72
73
74 void fsubri()
75 {
76
77
78
79 reg_sub(FPU_st0_ptr, &st(FPU_rm), &st(FPU_rm));
80 }
81
82
83 void fsub_i()
84 {
85
86
87
88 reg_sub(&st(FPU_rm), FPU_st0_ptr, &st(FPU_rm));
89 }
90
91
92 void fdivri()
93 {
94
95 reg_div(FPU_st0_ptr, &st(FPU_rm), &st(FPU_rm));
96 }
97
98
99 void fdiv_i()
100 {
101
102 reg_div(&st(FPU_rm), FPU_st0_ptr, &st(FPU_rm));
103 }
104
105
106
107 void faddp_()
108 {
109
110 reg_add(FPU_st0_ptr, &st(FPU_rm), &st(FPU_rm));
111 pop();
112 }
113
114
115 void fmulp_()
116 {
117
118 reg_mul(&st(FPU_rm), FPU_st0_ptr, &st(FPU_rm));
119 pop();
120 }
121
122
123
124 void fsubrp()
125 {
126
127
128
129 reg_sub(FPU_st0_ptr, &st(FPU_rm), &st(FPU_rm));
130 pop();
131 }
132
133
134 void fsubp_()
135 {
136
137
138
139 reg_sub(&st(FPU_rm), FPU_st0_ptr, &st(FPU_rm));
140 pop();
141 }
142
143
144 void fdivrp()
145 {
146
147 reg_div(FPU_st0_ptr, &st(FPU_rm), &st(FPU_rm));
148 pop();
149 }
150
151
152 void fdivp_()
153 {
154
155 reg_div(&st(FPU_rm), FPU_st0_ptr, &st(FPU_rm));
156 pop();
157 }
158