Move SIMD constants to jit_State to keep them in the low 4GB.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user