FFI: Move code for cdata arithmetic to lj_carith.c.

This commit is contained in:
Mike Pall
2011-01-26 21:46:02 +01:00
parent 2526498c71
commit 3184f17169
11 changed files with 308 additions and 260 deletions

View File

@@ -689,7 +689,7 @@ static TRef crec_arith_int64(jit_State *J, TRef *sp, CType **s, MMS mm)
J->postproc = LJ_POST_FIXGUARD;
return TREF_TRUE;
} else if (mm == MM_pow) {
tr = lj_ir_call(J, IRCALL_lj_cdata_powi64, sp[0], sp[1],
tr = lj_ir_call(J, IRCALL_lj_carith_powi64, sp[0], sp[1],
lj_ir_kint(J, (int)dt-(int)IRT_I64));
} else {
if (mm == MM_div || mm == MM_mod)