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_x64.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_x64.dasc')
-rw-r--r-- | src/vm_x64.dasc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/vm_x64.dasc b/src/vm_x64.dasc index 4aa8589c..8dd48b84 100644 --- a/src/vm_x64.dasc +++ b/src/vm_x64.dasc | |||
@@ -1755,16 +1755,13 @@ static void build_subroutines(BuildCtx *ctx) | |||
1755 | | jmp ->fff_resxmm0 | 1755 | | jmp ->fff_resxmm0 |
1756 | |.endmacro | 1756 | |.endmacro |
1757 | | | 1757 | | |
1758 | |.macro math_extern2, name, func | 1758 | |.macro math_extern2, func |
1759 | | .ffunc_nn math_ .. name | 1759 | | .ffunc_nn math_ .. func |
1760 | | mov RB, BASE | 1760 | | mov RB, BASE |
1761 | | call extern func | 1761 | | call extern func |
1762 | | mov BASE, RB | 1762 | | mov BASE, RB |
1763 | | jmp ->fff_resxmm0 | 1763 | | jmp ->fff_resxmm0 |
1764 | |.endmacro | 1764 | |.endmacro |
1765 | |.macro math_extern2, func | ||
1766 | | math_extern2 func, func | ||
1767 | |.endmacro | ||
1768 | | | 1765 | | |
1769 | | math_extern log10 | 1766 | | math_extern log10 |
1770 | | math_extern exp | 1767 | | math_extern exp |
@@ -1777,7 +1774,7 @@ static void build_subroutines(BuildCtx *ctx) | |||
1777 | | math_extern sinh | 1774 | | math_extern sinh |
1778 | | math_extern cosh | 1775 | | math_extern cosh |
1779 | | math_extern tanh | 1776 | | math_extern tanh |
1780 | | math_extern2 pow, lj_vm_pow | 1777 | | math_extern2 pow |
1781 | | math_extern2 atan2 | 1778 | | math_extern2 atan2 |
1782 | | math_extern2 fmod | 1779 | | math_extern2 fmod |
1783 | | | 1780 | | |