diff options
Diffstat (limited to 'src/lj_ffrecord.c')
-rw-r--r-- | src/lj_ffrecord.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/lj_ffrecord.c b/src/lj_ffrecord.c index 5282217f..436d5037 100644 --- a/src/lj_ffrecord.c +++ b/src/lj_ffrecord.c | |||
@@ -601,22 +601,6 @@ static void LJ_FASTCALL recff_math_htrig(jit_State *J, RecordFFData *rd) | |||
601 | J->base[0] = emitir(IRTN(IR_CALLN), tr, rd->data); | 601 | J->base[0] = emitir(IRTN(IR_CALLN), tr, rd->data); |
602 | } | 602 | } |
603 | 603 | ||
604 | static void LJ_FASTCALL recff_math_modf(jit_State *J, RecordFFData *rd) | ||
605 | { | ||
606 | TRef tr = J->base[0]; | ||
607 | if (tref_isinteger(tr)) { | ||
608 | J->base[0] = tr; | ||
609 | J->base[1] = lj_ir_kint(J, 0); | ||
610 | } else { | ||
611 | TRef trt; | ||
612 | tr = lj_ir_tonum(J, tr); | ||
613 | trt = emitir(IRTN(IR_FPMATH), tr, IRFPM_TRUNC); | ||
614 | J->base[0] = trt; | ||
615 | J->base[1] = emitir(IRTN(IR_SUB), tr, trt); | ||
616 | } | ||
617 | rd->nres = 2; | ||
618 | } | ||
619 | |||
620 | static void LJ_FASTCALL recff_math_pow(jit_State *J, RecordFFData *rd) | 604 | static void LJ_FASTCALL recff_math_pow(jit_State *J, RecordFFData *rd) |
621 | { | 605 | { |
622 | J->base[0] = lj_opt_narrow_pow(J, J->base[0], J->base[1], | 606 | J->base[0] = lj_opt_narrow_pow(J, J->base[0], J->base[1], |