Skip to content

Commit

Permalink
JIT: Set compfpu default to 0 for 64-bit CPU, change a double to float
Browse files Browse the repository at this point in the history
  • Loading branch information
FrodeSolheim committed Sep 20, 2015
1 parent b7b21dc commit 18ee612
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/cfgfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6071,7 +6071,12 @@ void default_prefs (struct uae_prefs *p, int type)
p->comp_hardflush = 0;
p->comp_constjump = 1;
#ifdef USE_JIT_FPU
#ifdef CPU_x86_64
/* Set default to off, since JIT FPU isn't 64-bit safe yet. */
p->compfpu = 0;
#else
p->compfpu = 1;
#endif
#else
p->compfpu = 0;
#endif
Expand Down
3 changes: 2 additions & 1 deletion src/jit/codegen_x86.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4323,7 +4323,8 @@ LOWFUNC(NONE,NONE,2,raw_fsin_rr,(FW d, FR s))
}
LENDFUNC(NONE,NONE,2,raw_fsin_rr,(FW d, FR s))

static const double one=1;
float one = 1;

LOWFUNC(NONE,NONE,2,raw_ftwotox_rr,(FW d, FR s))
{
int ds;
Expand Down

0 comments on commit 18ee612

Please sign in to comment.