aboutsummaryrefslogtreecommitdiff
path: root/test/compress/asm.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2019-10-27 03:07:07 +0800
committerGitHub <noreply@github.com>2019-10-27 03:07:07 +0800
commit50a578c1f63e61654d71642cbfa35f41da9bd626 (patch)
treedc334902dc1eed057ab9d54a669b41a01126cce2 /test/compress/asm.js
parent85237b08d46c62a97c9b338c4e62d71cdba76e24 (diff)
downloadtracifyjs-50a578c1f63e61654d71642cbfa35f41da9bd626.tar.gz
tracifyjs-50a578c1f63e61654d71642cbfa35f41da9bd626.zip
compress arithmetic expressions further (#3529)
Diffstat (limited to 'test/compress/asm.js')
-rw-r--r--test/compress/asm.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/compress/asm.js b/test/compress/asm.js
index cebe6838..1f00f8f2 100644
--- a/test/compress/asm.js
+++ b/test/compress/asm.js
@@ -96,7 +96,7 @@ asm_mixed: {
return +sum;
}
function geometricMean(start, end) {
- return start |= 0, end |= 0, +exp(+logSum(start, end) / +(end - start | 0));
+ return start |= 0, end |= 0, +exp(logSum(start, end) / (end - start | 0));
}
var exp = stdlib.Math.exp, log = stdlib.Math.log, values = new stdlib.Float64Array(buffer);
return { geometricMean: geometricMean };