From eec28aa9fdf5f733a4f7d2628fc060eac66ab713 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Fri, 3 Jun 2011 17:12:46 +0200 Subject: Move math helpers to lj_vmmath.c. Add missing log2/exp2 for Symbian. --- src/lj_asm_x86.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lj_asm_x86.h') diff --git a/src/lj_asm_x86.h b/src/lj_asm_x86.h index b7712b36..c89bc521 100644 --- a/src/lj_asm_x86.h +++ b/src/lj_asm_x86.h @@ -1591,8 +1591,8 @@ static void asm_fpmath(ASMState *as, IRIns *ir) } emit_rmro(as, XO_FSTPq, XOg_FSTPq, RID_ESP, ofs); switch (fpm) { /* st0 = lj_vm_*(st0) */ - case IRFPM_EXP: emit_call(as, lj_vm_exp); break; - case IRFPM_EXP2: emit_call(as, lj_vm_exp2); break; + case IRFPM_EXP: emit_call(as, lj_vm_exp_x87); break; + case IRFPM_EXP2: emit_call(as, lj_vm_exp2_x87); break; case IRFPM_SIN: emit_x87op(as, XI_FSIN); break; case IRFPM_COS: emit_x87op(as, XI_FCOS); break; case IRFPM_TAN: emit_x87op(as, XI_FPOP); emit_x87op(as, XI_FPTAN); break; -- cgit v1.2.3-55-g6feb