summaryrefslogtreecommitdiff
path: root/test/wasm2js/conversions-modified.2asm.js.opt
diff options
context:
space:
mode:
authorMax Graey <maxgraey@gmail.com>2020-10-14 03:49:46 +0300
committerGitHub <noreply@github.com>2020-10-13 17:49:46 -0700
commit1a1b547aee688a0d96251e8afd565999acfb1922 (patch)
tree7aa1794b4dfc8db996f41b3203848e20b245d768 /test/wasm2js/conversions-modified.2asm.js.opt
parent8943fcc31d12545043043c06c037cf6dfee14722 (diff)
downloadbinaryen-1a1b547aee688a0d96251e8afd565999acfb1922.tar.gz
binaryen-1a1b547aee688a0d96251e8afd565999acfb1922.tar.bz2
binaryen-1a1b547aee688a0d96251e8afd565999acfb1922.zip
Optimize power of two float divisions (#3018)
Diffstat (limited to 'test/wasm2js/conversions-modified.2asm.js.opt')
-rw-r--r--test/wasm2js/conversions-modified.2asm.js.opt4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/wasm2js/conversions-modified.2asm.js.opt b/test/wasm2js/conversions-modified.2asm.js.opt
index befce2489..072a3bbc6 100644
--- a/test/wasm2js/conversions-modified.2asm.js.opt
+++ b/test/wasm2js/conversions-modified.2asm.js.opt
@@ -67,13 +67,13 @@ function asmFunc(global, env) {
function $7($0) {
$0 = Math_fround($0);
- i64toi32_i32$HIGH_BITS = Math_fround(Math_abs($0)) >= Math_fround(1.0) ? ($0 > Math_fround(0.0) ? ~~Math_fround(Math_min(Math_fround(Math_floor(Math_fround($0 / Math_fround(4294967296.0)))), Math_fround(4294967296.0))) >>> 0 : ~~Math_fround(Math_ceil(Math_fround(Math_fround($0 - Math_fround(~~$0 >>> 0 >>> 0)) / Math_fround(4294967296.0)))) >>> 0) : 0;
+ i64toi32_i32$HIGH_BITS = Math_fround(Math_abs($0)) >= Math_fround(1.0) ? ($0 > Math_fround(0.0) ? ~~Math_fround(Math_min(Math_fround(Math_floor(Math_fround($0 * Math_fround(2.3283064365386963e-10)))), Math_fround(4294967296.0))) >>> 0 : ~~Math_fround(Math_ceil(Math_fround(Math_fround($0 - Math_fround(~~$0 >>> 0 >>> 0)) * Math_fround(2.3283064365386963e-10)))) >>> 0) : 0;
return ~~$0 >>> 0 | 0;
}
function $9($0) {
$0 = +$0;
- i64toi32_i32$HIGH_BITS = Math_abs($0) >= 1.0 ? ($0 > 0.0 ? ~~Math_min(Math_floor($0 / 4294967296.0), 4294967295.0) >>> 0 : ~~Math_ceil(($0 - +(~~$0 >>> 0 >>> 0)) / 4294967296.0) >>> 0) : 0;
+ i64toi32_i32$HIGH_BITS = Math_abs($0) >= 1.0 ? ($0 > 0.0 ? ~~Math_min(Math_floor($0 * 2.3283064365386963e-10), 4294967295.0) >>> 0 : ~~Math_ceil(($0 - +(~~$0 >>> 0 >>> 0)) * 2.3283064365386963e-10) >>> 0) : 0;
return ~~$0 >>> 0 | 0;
}