Move SIMD constants to jit_State to keep them in the low 4GB.

This commit is contained in:
Mike Pall
2010-02-24 23:17:17 +01:00
parent b32f4f4549
commit b95294572c
6 changed files with 41 additions and 18 deletions

View File

@@ -275,6 +275,20 @@ int lj_trace_flushall(lua_State *L)
return 0;
}
/* Initialize JIT compiler state. */
void lj_trace_initstate(global_State *g)
{
jit_State *J = G2J(g);
TValue *tv;
/* Initialize SIMD constants. */
tv = LJ_KSIMD(J, LJ_KSIMD_ABS);
tv[0].u64 = U64x(7fffffff,ffffffff);
tv[1].u64 = U64x(7fffffff,ffffffff);
tv = LJ_KSIMD(J, LJ_KSIMD_NEG);
tv[0].u64 = U64x(80000000,00000000);
tv[1].u64 = U64x(80000000,00000000);
}
/* Free everything associated with the JIT compiler state. */
void lj_trace_freestate(global_State *g)
{