mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
this should speed up progs a little bit
This commit is contained in:
parent
0477b43f80
commit
5c943d4ca9
1 changed files with 9 additions and 3 deletions
|
@ -268,9 +268,9 @@ PR_LeaveFunction (progs_t * pr)
|
||||||
return pr->pr_stack[pr->pr_depth].s;
|
return pr->pr_stack[pr->pr_depth].s;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define OPA (pr->pr_globals[st->a])
|
#define OPA (*op_a)
|
||||||
#define OPB (pr->pr_globals[st->b])
|
#define OPB (*op_b)
|
||||||
#define OPC (pr->pr_globals[st->c])
|
#define OPC (*op_c)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This gets around the problem of needing to test for -0.0 but denormals
|
This gets around the problem of needing to test for -0.0 but denormals
|
||||||
|
@ -312,12 +312,18 @@ PR_ExecuteProgram (progs_t * pr, func_t fnum)
|
||||||
startprofile = profile = 0;
|
startprofile = profile = 0;
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
|
pr_type_t *op_a, *op_b, *op_c;
|
||||||
|
|
||||||
st++;
|
st++;
|
||||||
if (++profile > 1000000 && !pr->no_exec_limit) {
|
if (++profile > 1000000 && !pr->no_exec_limit) {
|
||||||
pr->pr_xstatement = st - pr->pr_statements;
|
pr->pr_xstatement = st - pr->pr_statements;
|
||||||
PR_RunError (pr, "runaway loop error");
|
PR_RunError (pr, "runaway loop error");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
op_a = pr->pr_globals + st->a;
|
||||||
|
op_b = pr->pr_globals + st->b;
|
||||||
|
op_c = pr->pr_globals + st->c;
|
||||||
|
|
||||||
if (pr->pr_trace)
|
if (pr->pr_trace)
|
||||||
PR_PrintStatement (pr, st);
|
PR_PrintStatement (pr, st);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue