diff options
Diffstat (limited to '')
-rw-r--r-- | src/vm_mips64.dasc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/vm_mips64.dasc b/src/vm_mips64.dasc index 651bc42e..3b916379 100644 --- a/src/vm_mips64.dasc +++ b/src/vm_mips64.dasc | |||
@@ -1667,14 +1667,17 @@ static void build_subroutines(BuildCtx *ctx) | |||
1667 | |. nop | 1667 | |. nop |
1668 | |.endmacro | 1668 | |.endmacro |
1669 | | | 1669 | | |
1670 | |.macro math_extern2, func | 1670 | |.macro math_extern2, name, func |
1671 | | .ffunc_nn math_ .. func | 1671 | | .ffunc_nn math_ .. name |
1672 | |. load_got func | 1672 | |. load_got func |
1673 | | call_extern | 1673 | | call_extern |
1674 | |. nop | 1674 | |. nop |
1675 | | b ->fff_resn | 1675 | | b ->fff_resn |
1676 | |. nop | 1676 | |. nop |
1677 | |.endmacro | 1677 | |.endmacro |
1678 | |.macro math_extern2, func | ||
1679 | | math_extern2 func, func | ||
1680 | |.endmacro | ||
1678 | | | 1681 | | |
1679 | |// TODO: Return integer type if result is integer (own sf implementation). | 1682 | |// TODO: Return integer type if result is integer (own sf implementation). |
1680 | |.macro math_round, func | 1683 | |.macro math_round, func |
@@ -1728,7 +1731,7 @@ static void build_subroutines(BuildCtx *ctx) | |||
1728 | | math_extern sinh | 1731 | | math_extern sinh |
1729 | | math_extern cosh | 1732 | | math_extern cosh |
1730 | | math_extern tanh | 1733 | | math_extern tanh |
1731 | | math_extern2 pow | 1734 | | math_extern2 pow, lj_vm_pow |
1732 | | math_extern2 atan2 | 1735 | | math_extern2 atan2 |
1733 | | math_extern2 fmod | 1736 | | math_extern2 fmod |
1734 | | | 1737 | | |
@@ -3915,7 +3918,7 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop) | |||
3915 | | sltiu TMP0, TMP0, LJ_TISNUM | 3918 | | sltiu TMP0, TMP0, LJ_TISNUM |
3916 | | sltiu TMP1, TMP1, LJ_TISNUM | 3919 | | sltiu TMP1, TMP1, LJ_TISNUM |
3917 | | and AT, TMP0, TMP1 | 3920 | | and AT, TMP0, TMP1 |
3918 | | load_got pow | 3921 | | load_got lj_vm_pow |
3919 | | beqz AT, ->vmeta_arith | 3922 | | beqz AT, ->vmeta_arith |
3920 | |. daddu RA, BASE, RA | 3923 | |. daddu RA, BASE, RA |
3921 | |.if FPU | 3924 | |.if FPU |