diff options
author | Mike Pall <mike> | 2022-03-08 19:44:10 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2022-03-08 19:44:10 +0100 |
commit | 96d6d5032098ea9f0002165394a8774dcaa0c0ce (patch) | |
tree | 84712e02c1452d8f0c48a6f506a9aa1ebe0f4a32 /src/vm_ppc.dasc | |
parent | aa0550e3f0999cc6ef62f7ef80493ebef8c9a2f7 (diff) | |
download | luajit-96d6d5032098ea9f0002165394a8774dcaa0c0ce.tar.gz luajit-96d6d5032098ea9f0002165394a8774dcaa0c0ce.tar.bz2 luajit-96d6d5032098ea9f0002165394a8774dcaa0c0ce.zip |
Revert to trival pow() optimizations to prevent inaccuracies.
Diffstat (limited to 'src/vm_ppc.dasc')
-rw-r--r-- | src/vm_ppc.dasc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/vm_ppc.dasc b/src/vm_ppc.dasc index cc4d56d7..3cad37d2 100644 --- a/src/vm_ppc.dasc +++ b/src/vm_ppc.dasc | |||
@@ -2012,14 +2012,11 @@ static void build_subroutines(BuildCtx *ctx) | |||
2012 | | b ->fff_resn | 2012 | | b ->fff_resn |
2013 | |.endmacro | 2013 | |.endmacro |
2014 | | | 2014 | | |
2015 | |.macro math_extern2, name, func | 2015 | |.macro math_extern2, func |
2016 | | .ffunc_nn math_ .. name | 2016 | | .ffunc_nn math_ .. func |
2017 | | blex func | 2017 | | blex func |
2018 | | b ->fff_resn | 2018 | | b ->fff_resn |
2019 | |.endmacro | 2019 | |.endmacro |
2020 | |.macro math_extern2, func | ||
2021 | | math_extern2 func, func | ||
2022 | |.endmacro | ||
2023 | | | 2020 | | |
2024 | |.macro math_round, func | 2021 | |.macro math_round, func |
2025 | | .ffunc_1 math_ .. func | 2022 | | .ffunc_1 math_ .. func |
@@ -2144,7 +2141,7 @@ static void build_subroutines(BuildCtx *ctx) | |||
2144 | | math_extern sinh | 2141 | | math_extern sinh |
2145 | | math_extern cosh | 2142 | | math_extern cosh |
2146 | | math_extern tanh | 2143 | | math_extern tanh |
2147 | | math_extern2 pow, lj_vm_pow | 2144 | | math_extern2 pow |
2148 | | math_extern2 atan2 | 2145 | | math_extern2 atan2 |
2149 | | math_extern2 fmod | 2146 | | math_extern2 fmod |
2150 | | | 2147 | | |
@@ -4142,7 +4139,7 @@ static void build_ins(BuildCtx *ctx, BCOp op, int defop) | |||
4142 | | checknum cr1, CARG3 | 4139 | | checknum cr1, CARG3 |
4143 | | crand 4*cr0+lt, 4*cr0+lt, 4*cr1+lt | 4140 | | crand 4*cr0+lt, 4*cr0+lt, 4*cr1+lt |
4144 | | bge ->vmeta_arith_vv | 4141 | | bge ->vmeta_arith_vv |
4145 | | blex lj_vm_pow | 4142 | | blex pow |
4146 | | ins_next1 | 4143 | | ins_next1 |
4147 | |.if FPU | 4144 | |.if FPU |
4148 | | stfdx FARG1, BASE, RA | 4145 | | stfdx FARG1, BASE, RA |