1 |
/* |
2 |
* fpu/rounding.cpp - system-dependant FPU rounding mode and precision |
3 |
* |
4 |
* Basilisk II (C) 1997-2008 Christian Bauer |
5 |
* |
6 |
* MC68881/68040 fpu emulation |
7 |
* |
8 |
* Original UAE FPU, copyright 1996 Herman ten Brugge |
9 |
* Rewrite for x86, copyright 1999-2000 Lauri Pesonen |
10 |
* New framework, copyright 2000 Gwenole Beauchesne |
11 |
* Adapted for JIT compilation (c) Bernd Meyer, 2000 |
12 |
* |
13 |
* This program is free software; you can redistribute it and/or modify |
14 |
* it under the terms of the GNU General Public License as published by |
15 |
* the Free Software Foundation; either version 2 of the License, or |
16 |
* (at your option) any later version. |
17 |
* |
18 |
* This program is distributed in the hope that it will be useful, |
19 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
20 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
21 |
* GNU General Public License for more details. |
22 |
* |
23 |
* You should have received a copy of the GNU General Public License |
24 |
* along with this program; if not, write to the Free Software |
25 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
26 |
*/ |
27 |
|
28 |
#undef PRIVATE |
29 |
#define PRIVATE /**/ |
30 |
|
31 |
#undef PUBLIC |
32 |
#define PUBLIC /**/ |
33 |
|
34 |
#undef FFPU |
35 |
#define FFPU /**/ |
36 |
|
37 |
#undef FPU |
38 |
#define FPU fpu. |
39 |
|
40 |
/* -------------------------------------------------------------------------- */ |
41 |
/* --- Native X86 Rounding Mode --- */ |
42 |
/* -------------------------------------------------------------------------- */ |
43 |
|
44 |
#ifdef FPU_USE_X86_ROUNDING_MODE |
45 |
const uae_u32 FFPU x86_control_word_rm_mac2host[] = { |
46 |
CW_RC_NEAR, |
47 |
CW_RC_ZERO, |
48 |
CW_RC_DOWN, |
49 |
CW_RC_UP |
50 |
}; |
51 |
#endif |
52 |
|
53 |
/* -------------------------------------------------------------------------- */ |
54 |
/* --- Native X86 Rounding Precision --- */ |
55 |
/* -------------------------------------------------------------------------- */ |
56 |
|
57 |
#ifdef FPU_USE_X86_ROUNDING_PRECISION |
58 |
const uae_u32 FFPU x86_control_word_rp_mac2host[] = { |
59 |
CW_PC_EXTENDED, |
60 |
CW_PC_SINGLE, |
61 |
CW_PC_DOUBLE, |
62 |
CW_PC_RESERVED |
63 |
}; |
64 |
#endif |