This should improve performance in debug builds, but is otherwise
optimized in release.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12774
d7cf8633-e32d-0410-b094-
e92efae38249
-#define OPA ((prvm_eval_t *)&prog->globals.fp[st->operand[0]])
-#define OPB ((prvm_eval_t *)&prog->globals.fp[st->operand[1]])
-#define OPC ((prvm_eval_t *)&prog->globals.fp[st->operand[2]])
+#define OPA ((prvm_eval_t *)&globals[st->operand[0]])
+#define OPB ((prvm_eval_t *)&globals[st->operand[1]])
+#define OPC ((prvm_eval_t *)&globals[st->operand[2]])
extern cvar_t prvm_traceqc;
extern cvar_t prvm_statementprofiling;
extern qboolean prvm_runawaycheck;
extern cvar_t prvm_traceqc;
extern cvar_t prvm_statementprofiling;
extern qboolean prvm_runawaycheck;
qboolean cached_allowworldwrites = prog->allowworldwrites;
unsigned int cached_flag = prog->flag;
qboolean cached_allowworldwrites = prog->allowworldwrites;
unsigned int cached_flag = prog->flag;
+ prvm_vec_t *globals = prog->globals.fp;
+
calltime = Sys_DirtyTime();
if (!fnum || fnum >= (unsigned int)prog->numfunctions)
calltime = Sys_DirtyTime();
if (!fnum || fnum >= (unsigned int)prog->numfunctions)
qboolean cached_allowworldwrites = prog->allowworldwrites;
unsigned int cached_flag = prog->flag;
qboolean cached_allowworldwrites = prog->allowworldwrites;
unsigned int cached_flag = prog->flag;
+ prvm_vec_t *globals = prog->globals.fp;
+
calltime = Sys_DirtyTime();
if (!fnum || fnum >= (unsigned int)prog->numfunctions)
calltime = Sys_DirtyTime();
if (!fnum || fnum >= (unsigned int)prog->numfunctions)
qboolean cached_allowworldwrites = prog->allowworldwrites;
unsigned int cached_flag = prog->flag;
qboolean cached_allowworldwrites = prog->allowworldwrites;
unsigned int cached_flag = prog->flag;
+ prvm_vec_t *globals = prog->globals.fp;
+
calltime = Sys_DirtyTime();
if (!fnum || fnum >= (unsigned int)prog->numfunctions)
calltime = Sys_DirtyTime();
if (!fnum || fnum >= (unsigned int)prog->numfunctions)