diff options
Diffstat (limited to 'test/compress/asm.js')
-rw-r--r-- | test/compress/asm.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/compress/asm.js b/test/compress/asm.js index 65d20b9c..331eb426 100644 --- a/test/compress/asm.js +++ b/test/compress/asm.js @@ -76,9 +76,8 @@ asm_mixed: { start = start | 0; end = end | 0; var sum = 0.0, p = 0, q = 0; - for (p = start << 3, q = end << 3; (p | 0) < (q | 0); p = p + 8 | 0) { + for (p = start << 3, q = end << 3; (p | 0) < (q | 0); p = p + 8 | 0) sum = sum + +log(values[p >> 3]); - } return +sum; } function geometricMean(start, end) { @@ -91,7 +90,8 @@ asm_mixed: { function no_asm_GeometricMean(stdlib, foreign, buffer) { function logSum(start, end) { start |= 0, end |= 0; - for (var sum = 0, p = 0, q = 0, p = start << 3, q = end << 3; (0 | p) < (0 | q); p = p + 8 | 0) sum += +log(values[p >> 3]); + for (var sum = 0, p = 0, q = 0, p = start << 3, q = end << 3; (0 | p) < (0 | q); p = p + 8 | 0) + sum += +log(values[p >> 3]); return +sum; } function geometricMean(start, end) { |