Mercurial > pub > dyncall > dyncall
diff dyncall/dyncall_callvm_mips_o32.c @ 323:6ffb6a00cf55
- cosmetics and comments cleanup for readability
author | Tassilo Philipp |
---|---|
date | Sat, 16 Nov 2019 00:15:58 +0100 |
parents | b104c5beec8b |
children | ad5f9803f52f |
line wrap: on
line diff
--- a/dyncall/dyncall_callvm_mips_o32.c Sat Nov 16 00:12:32 2019 +0100 +++ b/dyncall/dyncall_callvm_mips_o32.c Sat Nov 16 00:15:58 2019 +0100 @@ -172,11 +172,9 @@ void dc_callvm_call_mips_o32(DCCallVM* in_self, DCpointer target) { DCCallVM_mips_o32* self = (DCCallVM_mips_o32*)in_self; - /* at minimum provide 16-bytes - which hold the first four integer register as spill area - and are automatically loaded to $4-$7 - */ + /* provide multiple of 8 (reflecting stack area alignment requirement), and + minimum of 16-bytes (to hold first 4 int regis as spill area ($4-$7)) */ size_t size = DC_MAX(16, ( ( (unsigned) dcVecSize(&self->mVecHead) ) +7UL ) & (-8UL) ); dcCall_mips_o32(target, &self->mRegData, size, dcVecData(&self->mVecHead));