1 |
|
/* |
2 |
|
* fpu/rounding.h - system-dependant FPU rounding mode and precision |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-1999 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2008 Christian Bauer |
5 |
|
* |
6 |
|
* MC68881/68040 fpu emulation |
7 |
|
* |
50 |
|
/* -------------------------------------------------------------------------- */ |
51 |
|
|
52 |
|
/* Optimized i386 fpu core must use native rounding mode */ |
53 |
< |
#if defined(FPU_X86) && defined(X86_ASSEMBLY) |
53 |
> |
#if defined(FPU_X86) && defined(USE_X87_ASSEMBLY) |
54 |
|
# undef FPU_USE_GENERIC_ROUNDING_MODE |
55 |
|
# define FPU_USE_X86_ROUNDING_MODE |
56 |
|
#endif |
57 |
|
|
58 |
|
/* Optimized i386 fpu core must use native rounding precision */ |
59 |
< |
#if defined(FPU_X86) && defined(X86_ASSEMBLY) |
59 |
> |
#if defined(FPU_X86) && defined(USE_X87_ASSEMBLY) |
60 |
|
# undef FPU_USE_GENERIC_ROUNDING_PRECISION |
61 |
|
# define FPU_USE_X86_ROUNDING_PRECISION |
62 |
|
#endif |
63 |
|
|
64 |
|
#if 0 // gb-- FIXME: that doesn't work |
65 |
|
/* IEEE-based fpu core can have native rounding mode on i386 */ |
66 |
< |
#if defined(FPU_IEEE) && defined(X86_ASSEMBLY) |
66 |
> |
#if defined(FPU_IEEE) && defined(USE_X87_ASSEMBLY) |
67 |
|
# undef FPU_USE_GENERIC_ROUNDING_MODE |
68 |
|
# define FPU_USE_X86_ROUNDING_MODE |
69 |
|
#endif |
70 |
|
|
71 |
|
/* IEEE-based fpu core can have native rounding precision on i386 */ |
72 |
< |
#if defined(FPU_IEEE) && defined(X86_ASSEMBLY) |
72 |
> |
#if defined(FPU_IEEE) && defined(USE_X87_ASSEMBLY) |
73 |
|
# undef FPU_USE_GENERIC_ROUNDING_PRECISION |
74 |
|
# define FPU_USE_X86_ROUNDING_PRECISION |
75 |
|
#endif |