mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-12 17:24:09 +00:00
FFI/ARM64: Fix pass-by-value struct calling conventions.
This commit is contained in:
parent
fc1c4da3cc
commit
9143e86498
@ -337,7 +337,8 @@
|
||||
if (LJ_TARGET_IOS && isva) { \
|
||||
/* IOS: All variadic arguments are on the stack. */ \
|
||||
} else if (isfp) { /* Try to pass argument in FPRs. */ \
|
||||
int n2 = ctype_isvector(d->info) ? 1 : n*isfp; \
|
||||
int n2 = ctype_isvector(d->info) ? 1 : \
|
||||
isfp == 1 ? n : (d->size >> (4-isfp)); \
|
||||
if (nfpr + n2 <= CCALL_NARG_FPR) { \
|
||||
dp = &cc->fpr[nfpr]; \
|
||||
nfpr += n2; \
|
||||
|
Loading…
Reference in New Issue
Block a user