Skip to content

Commit

Permalink
eel2: treat 1.0 like any other number on x86-64-sse -- from 0520cbe3
Browse files Browse the repository at this point in the history
  • Loading branch information
Cockos Inc authored and Justin Frankel committed Jan 1, 2022
1 parent 71a3742 commit 46343d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WDL/eel2/nseel-compiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -3206,7 +3206,7 @@ static int compileNativeFunctionCall(compileContext *ctx, opcodeRec *op, unsigne
#ifdef GLUE_PREFER_NONFP_DV_ASSIGNS // x86-64, and maybe others, prefer to avoid the fp stack for a simple copy
if (wantFpStack &&
(op->parms.parms[pn]->opcodeType != OPCODETYPE_DIRECTVALUE ||
(op->parms.parms[pn]->parms.dv.directValue != 1.0 && op->parms.parms[pn]->parms.dv.directValue != 0.0)))
op->parms.parms[pn]->parms.dv.directValue != 0.0))
{
wantFpStack=-1; // cacheable but non-FP stack
}
Expand Down

0 comments on commit 46343d8

Please sign in to comment.