mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-12 17:24:09 +00:00
Add target-specific macro for stack alignment in assembler backend.
This commit is contained in:
parent
6cb123bb99
commit
dab4bcafba
@ -729,7 +729,7 @@ static int32_t asm_stack_adjust(ASMState *as)
|
||||
{
|
||||
if (as->evenspill <= SPS_FIXED)
|
||||
return 0;
|
||||
return sps_scale((as->evenspill - SPS_FIXED + 3) & ~3);
|
||||
return sps_scale(sps_align(as->evenspill));
|
||||
}
|
||||
|
||||
/* Must match with hash*() in lj_tab.c. */
|
||||
|
@ -136,6 +136,7 @@ enum {
|
||||
#endif
|
||||
|
||||
#define sps_scale(slot) (4 * (int32_t)(slot))
|
||||
#define sps_align(slot) (((slot) - SPS_FIXED + 3) & ~3)
|
||||
|
||||
/* -- Exit state ---------------------------------------------------------- */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user