ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/uae_cpu/fpu/core.h
(Generate patch)

Comparing BasiliskII/src/uae_cpu/fpu/core.h (file contents):
Revision 1.2 by gbeauche, 2002-09-19T15:42:16Z vs.
Revision 1.3 by gbeauche, 2002-11-16T15:28:25Z

# Line 31 | Line 31
31   #include "sysdeps.h"
32   #include "fpu/types.h"
33  
34 + /* Always use x87 FPU stack on IA-32.  */
35 + #if defined(X86_ASSEMBLY)
36 + #define USE_X87_ASSEMBLY 1
37 + #endif
38 +
39 + /* Only use x87 FPU on x86-64 if long double precision is requested.  */
40 + #if defined(X86_64_ASSEMBLY) && USE_LONG_DOUBLE
41 + #define USE_X87_ASSEMBLY 1
42 + #endif
43 +
44   /* ========================================================================== */
45   /* ========================= FPU CONTEXT DEFINITION ========================= */
46   /* ========================================================================== */
# Line 150 | Line 160 | struct fpu_t {
160          /* ---------------------------------------------------------------------- */
161          
162          #if                     defined(FPU_X86) \
163 <                        ||      (defined(FPU_UAE) && defined(X86_ASSEMBLY)) \
164 <                        ||      (defined(FPU_IEEE) && defined(X86_ASSEMBLY))
163 >                        ||      (defined(FPU_UAE) && defined(USE_X87_ASSEMBLY)) \
164 >                        ||      (defined(FPU_IEEE) && defined(USE_X87_ASSEMBLY))
165          
166          #define         CW_RESET                                0x0040  // initial CW value after RESET
167          #define         CW_FINIT                                0x037F  // initial CW value after FINIT

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines