@danielsimonjr/mathts-wasm 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -40
- package/build/mathts-debug.wasm +0 -0
- package/build/mathts-debug.wasm.map +1 -1
- package/build/mathts-debug.wat +816 -2061
- package/build/mathts.wasm +0 -0
- package/build/mathts.wat +750 -1633
- package/build/wasm-manifest.json +2 -2
- package/package.json +4 -6
- package/build/bindings/index.d.ts +0 -9
- package/build/bindings/index.d.ts.map +0 -1
- package/build/bindings/index.js +0 -8
- package/build/bindings/index.js.map +0 -1
- package/build/bindings/wasm-loader.d.ts +0 -121
- package/build/bindings/wasm-loader.d.ts.map +0 -1
- package/build/bindings/wasm-loader.js +0 -259
- package/build/bindings/wasm-loader.js.map +0 -1
- package/src/bindings/index.ts +0 -9
- package/src/bindings/wasm-loader.ts +0 -382
package/build/mathts-debug.wat
CHANGED
|
@@ -6,30 +6,30 @@
|
|
|
6
6
|
(type $4 (func (param i32 i32)))
|
|
7
7
|
(type $5 (func (param i32) (result f64)))
|
|
8
8
|
(type $6 (func (param f64 f64) (result f64)))
|
|
9
|
-
(type $7 (func (param i32 i32) (result
|
|
10
|
-
(type $8 (func (param i32 i32
|
|
9
|
+
(type $7 (func (param i32 i32 i32) (result i32)))
|
|
10
|
+
(type $8 (func (param i32 i32) (result f64)))
|
|
11
11
|
(type $9 (func (param i32 i32 i32 i32)))
|
|
12
12
|
(type $10 (func (param i32 f64)))
|
|
13
13
|
(type $11 (func (param f64) (result i32)))
|
|
14
14
|
(type $12 (func (param i32 i32 i32 i32) (result i32)))
|
|
15
|
-
(type $13 (func (param
|
|
16
|
-
(type $14 (func))
|
|
17
|
-
(type $15 (func (param
|
|
18
|
-
(type $16 (func
|
|
15
|
+
(type $13 (func (param f64 f64) (result i32)))
|
|
16
|
+
(type $14 (func (param f64 f64 f64) (result f64)))
|
|
17
|
+
(type $15 (func (param i32 f64 i32)))
|
|
18
|
+
(type $16 (func))
|
|
19
19
|
(type $17 (func (param i32 i32 i32 i32 i32)))
|
|
20
20
|
(type $18 (func (param i32 i32 i32 f64) (result i32)))
|
|
21
21
|
(type $19 (func (param i64 i64) (result i64)))
|
|
22
22
|
(type $20 (func (param i32 f64) (result f64)))
|
|
23
|
-
(type $21 (func (param i32)))
|
|
24
|
-
(type $22 (func (param i32
|
|
25
|
-
(type $23 (func (param i32
|
|
26
|
-
(type $24 (func (param i32 i32 f64)
|
|
27
|
-
(type $25 (func (param i32 f64) (result i32)))
|
|
28
|
-
(type $26 (func (param
|
|
29
|
-
(type $27 (func (param
|
|
30
|
-
(type $28 (func (param
|
|
31
|
-
(type $29 (func (param i32 i32 i32
|
|
32
|
-
(type $30 (func (param i32 i32 i32
|
|
23
|
+
(type $21 (func (param f64 i32) (result f64)))
|
|
24
|
+
(type $22 (func (param i32)))
|
|
25
|
+
(type $23 (func (param i32 f64 f64) (result i32)))
|
|
26
|
+
(type $24 (func (param i32 i32 f64)))
|
|
27
|
+
(type $25 (func (param i32 i32 f64) (result i32)))
|
|
28
|
+
(type $26 (func (param i32 i32 i32 i32 i32) (result i32)))
|
|
29
|
+
(type $27 (func (param i32 f64) (result i32)))
|
|
30
|
+
(type $28 (func (param f64 f64 i32) (result f64)))
|
|
31
|
+
(type $29 (func (param i32 i32 i32 i32 i32 i32)))
|
|
32
|
+
(type $30 (func (param i32 i32 i32) (result f64)))
|
|
33
33
|
(type $31 (func (param i32 i32 i32 i32 i32 i32) (result i32)))
|
|
34
34
|
(type $32 (func (param f64 i64) (result i32)))
|
|
35
35
|
(type $33 (func (param f64 i32 f64 i32 i32)))
|
|
@@ -7315,97 +7315,109 @@
|
|
|
7315
7315
|
return
|
|
7316
7316
|
)
|
|
7317
7317
|
(func $src/ops/array/array_min (param $data i32) (result f64)
|
|
7318
|
+
(local $data|1 i32)
|
|
7318
7319
|
(local $len i32)
|
|
7319
7320
|
(local $minVal f64)
|
|
7320
7321
|
(local $i i32)
|
|
7321
7322
|
(local $val f64)
|
|
7322
|
-
|
|
7323
|
-
|
|
7324
|
-
|
|
7325
|
-
|
|
7326
|
-
|
|
7327
|
-
|
|
7328
|
-
if
|
|
7329
|
-
global.get $~lib/builtins/f64.NaN
|
|
7330
|
-
return
|
|
7331
|
-
end
|
|
7332
|
-
local.get $data
|
|
7333
|
-
i32.const 0
|
|
7334
|
-
call $~lib/typedarray/Float64Array#__uget
|
|
7335
|
-
local.set $minVal
|
|
7336
|
-
i32.const 1
|
|
7337
|
-
local.set $i
|
|
7338
|
-
loop $for-loop|0
|
|
7339
|
-
local.get $i
|
|
7323
|
+
block $src/ops/f64-buffer/f64Min|inlined.0 (result f64)
|
|
7324
|
+
local.get $data
|
|
7325
|
+
local.set $data|1
|
|
7326
|
+
local.get $data|1
|
|
7327
|
+
call $~lib/typedarray/Float64Array#get:length
|
|
7328
|
+
local.set $len
|
|
7340
7329
|
local.get $len
|
|
7341
|
-
i32.
|
|
7330
|
+
i32.const 0
|
|
7331
|
+
i32.eq
|
|
7342
7332
|
if
|
|
7343
|
-
|
|
7333
|
+
global.get $~lib/builtins/f64.NaN
|
|
7334
|
+
br $src/ops/f64-buffer/f64Min|inlined.0
|
|
7335
|
+
end
|
|
7336
|
+
local.get $data|1
|
|
7337
|
+
i32.const 0
|
|
7338
|
+
call $~lib/typedarray/Float64Array#__uget
|
|
7339
|
+
local.set $minVal
|
|
7340
|
+
i32.const 1
|
|
7341
|
+
local.set $i
|
|
7342
|
+
loop $for-loop|0
|
|
7344
7343
|
local.get $i
|
|
7345
|
-
|
|
7346
|
-
|
|
7347
|
-
local.get $val
|
|
7348
|
-
local.get $minVal
|
|
7349
|
-
f64.lt
|
|
7344
|
+
local.get $len
|
|
7345
|
+
i32.lt_s
|
|
7350
7346
|
if
|
|
7347
|
+
local.get $data|1
|
|
7348
|
+
local.get $i
|
|
7349
|
+
call $~lib/typedarray/Float64Array#__uget
|
|
7350
|
+
local.set $val
|
|
7351
7351
|
local.get $val
|
|
7352
|
-
local.
|
|
7352
|
+
local.get $minVal
|
|
7353
|
+
f64.lt
|
|
7354
|
+
if
|
|
7355
|
+
local.get $val
|
|
7356
|
+
local.set $minVal
|
|
7357
|
+
end
|
|
7358
|
+
local.get $i
|
|
7359
|
+
i32.const 1
|
|
7360
|
+
i32.add
|
|
7361
|
+
local.set $i
|
|
7362
|
+
br $for-loop|0
|
|
7353
7363
|
end
|
|
7354
|
-
local.get $i
|
|
7355
|
-
i32.const 1
|
|
7356
|
-
i32.add
|
|
7357
|
-
local.set $i
|
|
7358
|
-
br $for-loop|0
|
|
7359
7364
|
end
|
|
7365
|
+
local.get $minVal
|
|
7366
|
+
br $src/ops/f64-buffer/f64Min|inlined.0
|
|
7360
7367
|
end
|
|
7361
|
-
local.get $minVal
|
|
7362
7368
|
return
|
|
7363
7369
|
)
|
|
7364
7370
|
(func $src/ops/array/array_max (param $data i32) (result f64)
|
|
7371
|
+
(local $data|1 i32)
|
|
7365
7372
|
(local $len i32)
|
|
7366
7373
|
(local $maxVal f64)
|
|
7367
7374
|
(local $i i32)
|
|
7368
7375
|
(local $val f64)
|
|
7369
|
-
|
|
7370
|
-
|
|
7371
|
-
|
|
7372
|
-
|
|
7373
|
-
|
|
7374
|
-
|
|
7375
|
-
if
|
|
7376
|
-
global.get $~lib/builtins/f64.NaN
|
|
7377
|
-
return
|
|
7378
|
-
end
|
|
7379
|
-
local.get $data
|
|
7380
|
-
i32.const 0
|
|
7381
|
-
call $~lib/typedarray/Float64Array#__uget
|
|
7382
|
-
local.set $maxVal
|
|
7383
|
-
i32.const 1
|
|
7384
|
-
local.set $i
|
|
7385
|
-
loop $for-loop|0
|
|
7386
|
-
local.get $i
|
|
7376
|
+
block $src/ops/f64-buffer/f64Max|inlined.0 (result f64)
|
|
7377
|
+
local.get $data
|
|
7378
|
+
local.set $data|1
|
|
7379
|
+
local.get $data|1
|
|
7380
|
+
call $~lib/typedarray/Float64Array#get:length
|
|
7381
|
+
local.set $len
|
|
7387
7382
|
local.get $len
|
|
7388
|
-
i32.
|
|
7383
|
+
i32.const 0
|
|
7384
|
+
i32.eq
|
|
7389
7385
|
if
|
|
7390
|
-
|
|
7386
|
+
global.get $~lib/builtins/f64.NaN
|
|
7387
|
+
br $src/ops/f64-buffer/f64Max|inlined.0
|
|
7388
|
+
end
|
|
7389
|
+
local.get $data|1
|
|
7390
|
+
i32.const 0
|
|
7391
|
+
call $~lib/typedarray/Float64Array#__uget
|
|
7392
|
+
local.set $maxVal
|
|
7393
|
+
i32.const 1
|
|
7394
|
+
local.set $i
|
|
7395
|
+
loop $for-loop|0
|
|
7391
7396
|
local.get $i
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
local.get $val
|
|
7395
|
-
local.get $maxVal
|
|
7396
|
-
f64.gt
|
|
7397
|
+
local.get $len
|
|
7398
|
+
i32.lt_s
|
|
7397
7399
|
if
|
|
7400
|
+
local.get $data|1
|
|
7401
|
+
local.get $i
|
|
7402
|
+
call $~lib/typedarray/Float64Array#__uget
|
|
7403
|
+
local.set $val
|
|
7398
7404
|
local.get $val
|
|
7399
|
-
local.
|
|
7405
|
+
local.get $maxVal
|
|
7406
|
+
f64.gt
|
|
7407
|
+
if
|
|
7408
|
+
local.get $val
|
|
7409
|
+
local.set $maxVal
|
|
7410
|
+
end
|
|
7411
|
+
local.get $i
|
|
7412
|
+
i32.const 1
|
|
7413
|
+
i32.add
|
|
7414
|
+
local.set $i
|
|
7415
|
+
br $for-loop|0
|
|
7400
7416
|
end
|
|
7401
|
-
local.get $i
|
|
7402
|
-
i32.const 1
|
|
7403
|
-
i32.add
|
|
7404
|
-
local.set $i
|
|
7405
|
-
br $for-loop|0
|
|
7406
7417
|
end
|
|
7418
|
+
local.get $maxVal
|
|
7419
|
+
br $src/ops/f64-buffer/f64Max|inlined.0
|
|
7407
7420
|
end
|
|
7408
|
-
local.get $maxVal
|
|
7409
7421
|
return
|
|
7410
7422
|
)
|
|
7411
7423
|
(func $src/ops/array/array_argmin (param $data i32) (result i32)
|
|
@@ -7679,28 +7691,37 @@
|
|
|
7679
7691
|
f64.store
|
|
7680
7692
|
)
|
|
7681
7693
|
(func $src/ops/array/array_add (param $a i32) (param $b i32) (param $result i32)
|
|
7682
|
-
(local $3 i32)
|
|
7683
|
-
(local $4 i32)
|
|
7684
|
-
(local $5 i32)
|
|
7694
|
+
(local $a|3 i32)
|
|
7695
|
+
(local $b|4 i32)
|
|
7696
|
+
(local $result|5 i32)
|
|
7685
7697
|
(local $6 i32)
|
|
7698
|
+
(local $7 i32)
|
|
7699
|
+
(local $8 i32)
|
|
7700
|
+
(local $9 i32)
|
|
7686
7701
|
(local $len i32)
|
|
7687
7702
|
(local $i i32)
|
|
7688
7703
|
local.get $a
|
|
7689
|
-
|
|
7690
|
-
local.tee $3
|
|
7704
|
+
local.set $a|3
|
|
7691
7705
|
local.get $b
|
|
7692
|
-
|
|
7693
|
-
local.tee $4
|
|
7694
|
-
local.get $3
|
|
7695
|
-
local.get $4
|
|
7696
|
-
i32.lt_s
|
|
7697
|
-
select
|
|
7698
|
-
local.tee $5
|
|
7706
|
+
local.set $b|4
|
|
7699
7707
|
local.get $result
|
|
7708
|
+
local.set $result|5
|
|
7709
|
+
local.get $a|3
|
|
7700
7710
|
call $~lib/typedarray/Float64Array#get:length
|
|
7701
7711
|
local.tee $6
|
|
7702
|
-
local.get $
|
|
7712
|
+
local.get $b|4
|
|
7713
|
+
call $~lib/typedarray/Float64Array#get:length
|
|
7714
|
+
local.tee $7
|
|
7703
7715
|
local.get $6
|
|
7716
|
+
local.get $7
|
|
7717
|
+
i32.lt_s
|
|
7718
|
+
select
|
|
7719
|
+
local.tee $8
|
|
7720
|
+
local.get $result|5
|
|
7721
|
+
call $~lib/typedarray/Float64Array#get:length
|
|
7722
|
+
local.tee $9
|
|
7723
|
+
local.get $8
|
|
7724
|
+
local.get $9
|
|
7704
7725
|
i32.lt_s
|
|
7705
7726
|
select
|
|
7706
7727
|
local.set $len
|
|
@@ -7711,12 +7732,12 @@
|
|
|
7711
7732
|
local.get $len
|
|
7712
7733
|
i32.lt_s
|
|
7713
7734
|
if
|
|
7714
|
-
local.get $result
|
|
7735
|
+
local.get $result|5
|
|
7715
7736
|
local.get $i
|
|
7716
|
-
local.get $a
|
|
7737
|
+
local.get $a|3
|
|
7717
7738
|
local.get $i
|
|
7718
7739
|
call $~lib/typedarray/Float64Array#__uget
|
|
7719
|
-
local.get $b
|
|
7740
|
+
local.get $b|4
|
|
7720
7741
|
local.get $i
|
|
7721
7742
|
call $~lib/typedarray/Float64Array#__uget
|
|
7722
7743
|
f64.add
|
|
@@ -7730,28 +7751,37 @@
|
|
|
7730
7751
|
end
|
|
7731
7752
|
)
|
|
7732
7753
|
(func $src/ops/array/array_sub (param $a i32) (param $b i32) (param $result i32)
|
|
7733
|
-
(local $3 i32)
|
|
7734
|
-
(local $4 i32)
|
|
7735
|
-
(local $5 i32)
|
|
7754
|
+
(local $a|3 i32)
|
|
7755
|
+
(local $b|4 i32)
|
|
7756
|
+
(local $result|5 i32)
|
|
7736
7757
|
(local $6 i32)
|
|
7758
|
+
(local $7 i32)
|
|
7759
|
+
(local $8 i32)
|
|
7760
|
+
(local $9 i32)
|
|
7737
7761
|
(local $len i32)
|
|
7738
7762
|
(local $i i32)
|
|
7739
7763
|
local.get $a
|
|
7740
|
-
|
|
7741
|
-
local.tee $3
|
|
7764
|
+
local.set $a|3
|
|
7742
7765
|
local.get $b
|
|
7743
|
-
|
|
7744
|
-
local.tee $4
|
|
7745
|
-
local.get $3
|
|
7746
|
-
local.get $4
|
|
7747
|
-
i32.lt_s
|
|
7748
|
-
select
|
|
7749
|
-
local.tee $5
|
|
7766
|
+
local.set $b|4
|
|
7750
7767
|
local.get $result
|
|
7768
|
+
local.set $result|5
|
|
7769
|
+
local.get $a|3
|
|
7751
7770
|
call $~lib/typedarray/Float64Array#get:length
|
|
7752
7771
|
local.tee $6
|
|
7753
|
-
local.get $
|
|
7772
|
+
local.get $b|4
|
|
7773
|
+
call $~lib/typedarray/Float64Array#get:length
|
|
7774
|
+
local.tee $7
|
|
7754
7775
|
local.get $6
|
|
7776
|
+
local.get $7
|
|
7777
|
+
i32.lt_s
|
|
7778
|
+
select
|
|
7779
|
+
local.tee $8
|
|
7780
|
+
local.get $result|5
|
|
7781
|
+
call $~lib/typedarray/Float64Array#get:length
|
|
7782
|
+
local.tee $9
|
|
7783
|
+
local.get $8
|
|
7784
|
+
local.get $9
|
|
7755
7785
|
i32.lt_s
|
|
7756
7786
|
select
|
|
7757
7787
|
local.set $len
|
|
@@ -7762,12 +7792,12 @@
|
|
|
7762
7792
|
local.get $len
|
|
7763
7793
|
i32.lt_s
|
|
7764
7794
|
if
|
|
7765
|
-
local.get $result
|
|
7795
|
+
local.get $result|5
|
|
7766
7796
|
local.get $i
|
|
7767
|
-
local.get $a
|
|
7797
|
+
local.get $a|3
|
|
7768
7798
|
local.get $i
|
|
7769
7799
|
call $~lib/typedarray/Float64Array#__uget
|
|
7770
|
-
local.get $b
|
|
7800
|
+
local.get $b|4
|
|
7771
7801
|
local.get $i
|
|
7772
7802
|
call $~lib/typedarray/Float64Array#__uget
|
|
7773
7803
|
f64.sub
|
|
@@ -7781,28 +7811,37 @@
|
|
|
7781
7811
|
end
|
|
7782
7812
|
)
|
|
7783
7813
|
(func $src/ops/array/array_mul (param $a i32) (param $b i32) (param $result i32)
|
|
7784
|
-
(local $3 i32)
|
|
7785
|
-
(local $4 i32)
|
|
7786
|
-
(local $5 i32)
|
|
7814
|
+
(local $a|3 i32)
|
|
7815
|
+
(local $b|4 i32)
|
|
7816
|
+
(local $result|5 i32)
|
|
7787
7817
|
(local $6 i32)
|
|
7818
|
+
(local $7 i32)
|
|
7819
|
+
(local $8 i32)
|
|
7820
|
+
(local $9 i32)
|
|
7788
7821
|
(local $len i32)
|
|
7789
7822
|
(local $i i32)
|
|
7790
7823
|
local.get $a
|
|
7791
|
-
|
|
7792
|
-
local.tee $3
|
|
7824
|
+
local.set $a|3
|
|
7793
7825
|
local.get $b
|
|
7794
|
-
|
|
7795
|
-
local.tee $4
|
|
7796
|
-
local.get $3
|
|
7797
|
-
local.get $4
|
|
7798
|
-
i32.lt_s
|
|
7799
|
-
select
|
|
7800
|
-
local.tee $5
|
|
7826
|
+
local.set $b|4
|
|
7801
7827
|
local.get $result
|
|
7828
|
+
local.set $result|5
|
|
7829
|
+
local.get $a|3
|
|
7802
7830
|
call $~lib/typedarray/Float64Array#get:length
|
|
7803
7831
|
local.tee $6
|
|
7804
|
-
local.get $
|
|
7832
|
+
local.get $b|4
|
|
7833
|
+
call $~lib/typedarray/Float64Array#get:length
|
|
7834
|
+
local.tee $7
|
|
7805
7835
|
local.get $6
|
|
7836
|
+
local.get $7
|
|
7837
|
+
i32.lt_s
|
|
7838
|
+
select
|
|
7839
|
+
local.tee $8
|
|
7840
|
+
local.get $result|5
|
|
7841
|
+
call $~lib/typedarray/Float64Array#get:length
|
|
7842
|
+
local.tee $9
|
|
7843
|
+
local.get $8
|
|
7844
|
+
local.get $9
|
|
7806
7845
|
i32.lt_s
|
|
7807
7846
|
select
|
|
7808
7847
|
local.set $len
|
|
@@ -7813,12 +7852,12 @@
|
|
|
7813
7852
|
local.get $len
|
|
7814
7853
|
i32.lt_s
|
|
7815
7854
|
if
|
|
7816
|
-
local.get $result
|
|
7855
|
+
local.get $result|5
|
|
7817
7856
|
local.get $i
|
|
7818
|
-
local.get $a
|
|
7857
|
+
local.get $a|3
|
|
7819
7858
|
local.get $i
|
|
7820
7859
|
call $~lib/typedarray/Float64Array#__uget
|
|
7821
|
-
local.get $b
|
|
7860
|
+
local.get $b|4
|
|
7822
7861
|
local.get $i
|
|
7823
7862
|
call $~lib/typedarray/Float64Array#__uget
|
|
7824
7863
|
f64.mul
|
|
@@ -7832,28 +7871,37 @@
|
|
|
7832
7871
|
end
|
|
7833
7872
|
)
|
|
7834
7873
|
(func $src/ops/array/array_div (param $a i32) (param $b i32) (param $result i32)
|
|
7835
|
-
(local $3 i32)
|
|
7836
|
-
(local $4 i32)
|
|
7837
|
-
(local $5 i32)
|
|
7874
|
+
(local $a|3 i32)
|
|
7875
|
+
(local $b|4 i32)
|
|
7876
|
+
(local $result|5 i32)
|
|
7838
7877
|
(local $6 i32)
|
|
7878
|
+
(local $7 i32)
|
|
7879
|
+
(local $8 i32)
|
|
7880
|
+
(local $9 i32)
|
|
7839
7881
|
(local $len i32)
|
|
7840
7882
|
(local $i i32)
|
|
7841
7883
|
local.get $a
|
|
7842
|
-
|
|
7843
|
-
local.tee $3
|
|
7884
|
+
local.set $a|3
|
|
7844
7885
|
local.get $b
|
|
7845
|
-
|
|
7846
|
-
local.tee $4
|
|
7847
|
-
local.get $3
|
|
7848
|
-
local.get $4
|
|
7849
|
-
i32.lt_s
|
|
7850
|
-
select
|
|
7851
|
-
local.tee $5
|
|
7886
|
+
local.set $b|4
|
|
7852
7887
|
local.get $result
|
|
7888
|
+
local.set $result|5
|
|
7889
|
+
local.get $a|3
|
|
7853
7890
|
call $~lib/typedarray/Float64Array#get:length
|
|
7854
7891
|
local.tee $6
|
|
7855
|
-
local.get $
|
|
7892
|
+
local.get $b|4
|
|
7893
|
+
call $~lib/typedarray/Float64Array#get:length
|
|
7894
|
+
local.tee $7
|
|
7856
7895
|
local.get $6
|
|
7896
|
+
local.get $7
|
|
7897
|
+
i32.lt_s
|
|
7898
|
+
select
|
|
7899
|
+
local.tee $8
|
|
7900
|
+
local.get $result|5
|
|
7901
|
+
call $~lib/typedarray/Float64Array#get:length
|
|
7902
|
+
local.tee $9
|
|
7903
|
+
local.get $8
|
|
7904
|
+
local.get $9
|
|
7857
7905
|
i32.lt_s
|
|
7858
7906
|
select
|
|
7859
7907
|
local.set $len
|
|
@@ -7864,12 +7912,12 @@
|
|
|
7864
7912
|
local.get $len
|
|
7865
7913
|
i32.lt_s
|
|
7866
7914
|
if
|
|
7867
|
-
local.get $result
|
|
7915
|
+
local.get $result|5
|
|
7868
7916
|
local.get $i
|
|
7869
|
-
local.get $a
|
|
7917
|
+
local.get $a|3
|
|
7870
7918
|
local.get $i
|
|
7871
7919
|
call $~lib/typedarray/Float64Array#__uget
|
|
7872
|
-
local.get $b
|
|
7920
|
+
local.get $b|4
|
|
7873
7921
|
local.get $i
|
|
7874
7922
|
call $~lib/typedarray/Float64Array#__uget
|
|
7875
7923
|
f64.div
|
|
@@ -8990,28 +9038,37 @@
|
|
|
8990
9038
|
return
|
|
8991
9039
|
)
|
|
8992
9040
|
(func $src/ops/matrix/matrix_add (param $a i32) (param $b i32) (param $result i32)
|
|
8993
|
-
(local $3 i32)
|
|
8994
|
-
(local $4 i32)
|
|
8995
|
-
(local $5 i32)
|
|
9041
|
+
(local $a|3 i32)
|
|
9042
|
+
(local $b|4 i32)
|
|
9043
|
+
(local $result|5 i32)
|
|
8996
9044
|
(local $6 i32)
|
|
9045
|
+
(local $7 i32)
|
|
9046
|
+
(local $8 i32)
|
|
9047
|
+
(local $9 i32)
|
|
8997
9048
|
(local $len i32)
|
|
8998
9049
|
(local $i i32)
|
|
8999
9050
|
local.get $a
|
|
9000
|
-
|
|
9001
|
-
local.tee $3
|
|
9051
|
+
local.set $a|3
|
|
9002
9052
|
local.get $b
|
|
9003
|
-
|
|
9004
|
-
local.tee $4
|
|
9005
|
-
local.get $3
|
|
9006
|
-
local.get $4
|
|
9007
|
-
i32.lt_s
|
|
9008
|
-
select
|
|
9009
|
-
local.tee $5
|
|
9053
|
+
local.set $b|4
|
|
9010
9054
|
local.get $result
|
|
9055
|
+
local.set $result|5
|
|
9056
|
+
local.get $a|3
|
|
9011
9057
|
call $~lib/typedarray/Float64Array#get:length
|
|
9012
9058
|
local.tee $6
|
|
9013
|
-
local.get $
|
|
9059
|
+
local.get $b|4
|
|
9060
|
+
call $~lib/typedarray/Float64Array#get:length
|
|
9061
|
+
local.tee $7
|
|
9014
9062
|
local.get $6
|
|
9063
|
+
local.get $7
|
|
9064
|
+
i32.lt_s
|
|
9065
|
+
select
|
|
9066
|
+
local.tee $8
|
|
9067
|
+
local.get $result|5
|
|
9068
|
+
call $~lib/typedarray/Float64Array#get:length
|
|
9069
|
+
local.tee $9
|
|
9070
|
+
local.get $8
|
|
9071
|
+
local.get $9
|
|
9015
9072
|
i32.lt_s
|
|
9016
9073
|
select
|
|
9017
9074
|
local.set $len
|
|
@@ -9022,12 +9079,12 @@
|
|
|
9022
9079
|
local.get $len
|
|
9023
9080
|
i32.lt_s
|
|
9024
9081
|
if
|
|
9025
|
-
local.get $result
|
|
9082
|
+
local.get $result|5
|
|
9026
9083
|
local.get $i
|
|
9027
|
-
local.get $a
|
|
9084
|
+
local.get $a|3
|
|
9028
9085
|
local.get $i
|
|
9029
9086
|
call $~lib/typedarray/Float64Array#__uget
|
|
9030
|
-
local.get $b
|
|
9087
|
+
local.get $b|4
|
|
9031
9088
|
local.get $i
|
|
9032
9089
|
call $~lib/typedarray/Float64Array#__uget
|
|
9033
9090
|
f64.add
|
|
@@ -9041,28 +9098,37 @@
|
|
|
9041
9098
|
end
|
|
9042
9099
|
)
|
|
9043
9100
|
(func $src/ops/matrix/matrix_sub (param $a i32) (param $b i32) (param $result i32)
|
|
9044
|
-
(local $3 i32)
|
|
9045
|
-
(local $4 i32)
|
|
9046
|
-
(local $5 i32)
|
|
9101
|
+
(local $a|3 i32)
|
|
9102
|
+
(local $b|4 i32)
|
|
9103
|
+
(local $result|5 i32)
|
|
9047
9104
|
(local $6 i32)
|
|
9105
|
+
(local $7 i32)
|
|
9106
|
+
(local $8 i32)
|
|
9107
|
+
(local $9 i32)
|
|
9048
9108
|
(local $len i32)
|
|
9049
9109
|
(local $i i32)
|
|
9050
9110
|
local.get $a
|
|
9051
|
-
|
|
9052
|
-
local.tee $3
|
|
9111
|
+
local.set $a|3
|
|
9053
9112
|
local.get $b
|
|
9054
|
-
|
|
9055
|
-
local.tee $4
|
|
9056
|
-
local.get $3
|
|
9057
|
-
local.get $4
|
|
9058
|
-
i32.lt_s
|
|
9059
|
-
select
|
|
9060
|
-
local.tee $5
|
|
9113
|
+
local.set $b|4
|
|
9061
9114
|
local.get $result
|
|
9115
|
+
local.set $result|5
|
|
9116
|
+
local.get $a|3
|
|
9062
9117
|
call $~lib/typedarray/Float64Array#get:length
|
|
9063
9118
|
local.tee $6
|
|
9064
|
-
local.get $
|
|
9119
|
+
local.get $b|4
|
|
9120
|
+
call $~lib/typedarray/Float64Array#get:length
|
|
9121
|
+
local.tee $7
|
|
9065
9122
|
local.get $6
|
|
9123
|
+
local.get $7
|
|
9124
|
+
i32.lt_s
|
|
9125
|
+
select
|
|
9126
|
+
local.tee $8
|
|
9127
|
+
local.get $result|5
|
|
9128
|
+
call $~lib/typedarray/Float64Array#get:length
|
|
9129
|
+
local.tee $9
|
|
9130
|
+
local.get $8
|
|
9131
|
+
local.get $9
|
|
9066
9132
|
i32.lt_s
|
|
9067
9133
|
select
|
|
9068
9134
|
local.set $len
|
|
@@ -9073,12 +9139,12 @@
|
|
|
9073
9139
|
local.get $len
|
|
9074
9140
|
i32.lt_s
|
|
9075
9141
|
if
|
|
9076
|
-
local.get $result
|
|
9142
|
+
local.get $result|5
|
|
9077
9143
|
local.get $i
|
|
9078
|
-
local.get $a
|
|
9144
|
+
local.get $a|3
|
|
9079
9145
|
local.get $i
|
|
9080
9146
|
call $~lib/typedarray/Float64Array#__uget
|
|
9081
|
-
local.get $b
|
|
9147
|
+
local.get $b|4
|
|
9082
9148
|
local.get $i
|
|
9083
9149
|
call $~lib/typedarray/Float64Array#__uget
|
|
9084
9150
|
f64.sub
|
|
@@ -9092,28 +9158,37 @@
|
|
|
9092
9158
|
end
|
|
9093
9159
|
)
|
|
9094
9160
|
(func $src/ops/matrix/matrix_mul_elementwise (param $a i32) (param $b i32) (param $result i32)
|
|
9095
|
-
(local $3 i32)
|
|
9096
|
-
(local $4 i32)
|
|
9097
|
-
(local $5 i32)
|
|
9161
|
+
(local $a|3 i32)
|
|
9162
|
+
(local $b|4 i32)
|
|
9163
|
+
(local $result|5 i32)
|
|
9098
9164
|
(local $6 i32)
|
|
9165
|
+
(local $7 i32)
|
|
9166
|
+
(local $8 i32)
|
|
9167
|
+
(local $9 i32)
|
|
9099
9168
|
(local $len i32)
|
|
9100
9169
|
(local $i i32)
|
|
9101
9170
|
local.get $a
|
|
9102
|
-
|
|
9103
|
-
local.tee $3
|
|
9171
|
+
local.set $a|3
|
|
9104
9172
|
local.get $b
|
|
9105
|
-
|
|
9106
|
-
local.tee $4
|
|
9107
|
-
local.get $3
|
|
9108
|
-
local.get $4
|
|
9109
|
-
i32.lt_s
|
|
9110
|
-
select
|
|
9111
|
-
local.tee $5
|
|
9173
|
+
local.set $b|4
|
|
9112
9174
|
local.get $result
|
|
9175
|
+
local.set $result|5
|
|
9176
|
+
local.get $a|3
|
|
9113
9177
|
call $~lib/typedarray/Float64Array#get:length
|
|
9114
9178
|
local.tee $6
|
|
9115
|
-
local.get $
|
|
9179
|
+
local.get $b|4
|
|
9180
|
+
call $~lib/typedarray/Float64Array#get:length
|
|
9181
|
+
local.tee $7
|
|
9116
9182
|
local.get $6
|
|
9183
|
+
local.get $7
|
|
9184
|
+
i32.lt_s
|
|
9185
|
+
select
|
|
9186
|
+
local.tee $8
|
|
9187
|
+
local.get $result|5
|
|
9188
|
+
call $~lib/typedarray/Float64Array#get:length
|
|
9189
|
+
local.tee $9
|
|
9190
|
+
local.get $8
|
|
9191
|
+
local.get $9
|
|
9117
9192
|
i32.lt_s
|
|
9118
9193
|
select
|
|
9119
9194
|
local.set $len
|
|
@@ -9124,12 +9199,12 @@
|
|
|
9124
9199
|
local.get $len
|
|
9125
9200
|
i32.lt_s
|
|
9126
9201
|
if
|
|
9127
|
-
local.get $result
|
|
9202
|
+
local.get $result|5
|
|
9128
9203
|
local.get $i
|
|
9129
|
-
local.get $a
|
|
9204
|
+
local.get $a|3
|
|
9130
9205
|
local.get $i
|
|
9131
9206
|
call $~lib/typedarray/Float64Array#__uget
|
|
9132
|
-
local.get $b
|
|
9207
|
+
local.get $b|4
|
|
9133
9208
|
local.get $i
|
|
9134
9209
|
call $~lib/typedarray/Float64Array#__uget
|
|
9135
9210
|
f64.mul
|
|
@@ -9143,28 +9218,37 @@
|
|
|
9143
9218
|
end
|
|
9144
9219
|
)
|
|
9145
9220
|
(func $src/ops/matrix/matrix_div_elementwise (param $a i32) (param $b i32) (param $result i32)
|
|
9146
|
-
(local $3 i32)
|
|
9147
|
-
(local $4 i32)
|
|
9148
|
-
(local $5 i32)
|
|
9221
|
+
(local $a|3 i32)
|
|
9222
|
+
(local $b|4 i32)
|
|
9223
|
+
(local $result|5 i32)
|
|
9149
9224
|
(local $6 i32)
|
|
9225
|
+
(local $7 i32)
|
|
9226
|
+
(local $8 i32)
|
|
9227
|
+
(local $9 i32)
|
|
9150
9228
|
(local $len i32)
|
|
9151
9229
|
(local $i i32)
|
|
9152
9230
|
local.get $a
|
|
9153
|
-
|
|
9154
|
-
local.tee $3
|
|
9231
|
+
local.set $a|3
|
|
9155
9232
|
local.get $b
|
|
9156
|
-
|
|
9157
|
-
local.tee $4
|
|
9158
|
-
local.get $3
|
|
9159
|
-
local.get $4
|
|
9160
|
-
i32.lt_s
|
|
9161
|
-
select
|
|
9162
|
-
local.tee $5
|
|
9233
|
+
local.set $b|4
|
|
9163
9234
|
local.get $result
|
|
9235
|
+
local.set $result|5
|
|
9236
|
+
local.get $a|3
|
|
9164
9237
|
call $~lib/typedarray/Float64Array#get:length
|
|
9165
9238
|
local.tee $6
|
|
9166
|
-
local.get $
|
|
9239
|
+
local.get $b|4
|
|
9240
|
+
call $~lib/typedarray/Float64Array#get:length
|
|
9241
|
+
local.tee $7
|
|
9167
9242
|
local.get $6
|
|
9243
|
+
local.get $7
|
|
9244
|
+
i32.lt_s
|
|
9245
|
+
select
|
|
9246
|
+
local.tee $8
|
|
9247
|
+
local.get $result|5
|
|
9248
|
+
call $~lib/typedarray/Float64Array#get:length
|
|
9249
|
+
local.tee $9
|
|
9250
|
+
local.get $8
|
|
9251
|
+
local.get $9
|
|
9168
9252
|
i32.lt_s
|
|
9169
9253
|
select
|
|
9170
9254
|
local.set $len
|
|
@@ -9175,12 +9259,12 @@
|
|
|
9175
9259
|
local.get $len
|
|
9176
9260
|
i32.lt_s
|
|
9177
9261
|
if
|
|
9178
|
-
local.get $result
|
|
9262
|
+
local.get $result|5
|
|
9179
9263
|
local.get $i
|
|
9180
|
-
local.get $a
|
|
9264
|
+
local.get $a|3
|
|
9181
9265
|
local.get $i
|
|
9182
9266
|
call $~lib/typedarray/Float64Array#__uget
|
|
9183
|
-
local.get $b
|
|
9267
|
+
local.get $b|4
|
|
9184
9268
|
local.get $i
|
|
9185
9269
|
call $~lib/typedarray/Float64Array#__uget
|
|
9186
9270
|
f64.div
|
|
@@ -9873,97 +9957,109 @@
|
|
|
9873
9957
|
return
|
|
9874
9958
|
)
|
|
9875
9959
|
(func $src/ops/matrix/matrix_min (param $data i32) (result f64)
|
|
9960
|
+
(local $data|1 i32)
|
|
9876
9961
|
(local $len i32)
|
|
9877
9962
|
(local $minVal f64)
|
|
9878
9963
|
(local $i i32)
|
|
9879
9964
|
(local $val f64)
|
|
9880
|
-
|
|
9881
|
-
|
|
9882
|
-
|
|
9883
|
-
|
|
9884
|
-
|
|
9885
|
-
|
|
9886
|
-
if
|
|
9887
|
-
global.get $~lib/builtins/f64.NaN
|
|
9888
|
-
return
|
|
9889
|
-
end
|
|
9890
|
-
local.get $data
|
|
9891
|
-
i32.const 0
|
|
9892
|
-
call $~lib/typedarray/Float64Array#__uget
|
|
9893
|
-
local.set $minVal
|
|
9894
|
-
i32.const 1
|
|
9895
|
-
local.set $i
|
|
9896
|
-
loop $for-loop|0
|
|
9897
|
-
local.get $i
|
|
9965
|
+
block $src/ops/f64-buffer/f64Min|inlined.1 (result f64)
|
|
9966
|
+
local.get $data
|
|
9967
|
+
local.set $data|1
|
|
9968
|
+
local.get $data|1
|
|
9969
|
+
call $~lib/typedarray/Float64Array#get:length
|
|
9970
|
+
local.set $len
|
|
9898
9971
|
local.get $len
|
|
9899
|
-
i32.
|
|
9972
|
+
i32.const 0
|
|
9973
|
+
i32.eq
|
|
9900
9974
|
if
|
|
9901
|
-
|
|
9975
|
+
global.get $~lib/builtins/f64.NaN
|
|
9976
|
+
br $src/ops/f64-buffer/f64Min|inlined.1
|
|
9977
|
+
end
|
|
9978
|
+
local.get $data|1
|
|
9979
|
+
i32.const 0
|
|
9980
|
+
call $~lib/typedarray/Float64Array#__uget
|
|
9981
|
+
local.set $minVal
|
|
9982
|
+
i32.const 1
|
|
9983
|
+
local.set $i
|
|
9984
|
+
loop $for-loop|0
|
|
9902
9985
|
local.get $i
|
|
9903
|
-
|
|
9904
|
-
|
|
9905
|
-
local.get $val
|
|
9906
|
-
local.get $minVal
|
|
9907
|
-
f64.lt
|
|
9986
|
+
local.get $len
|
|
9987
|
+
i32.lt_s
|
|
9908
9988
|
if
|
|
9989
|
+
local.get $data|1
|
|
9990
|
+
local.get $i
|
|
9991
|
+
call $~lib/typedarray/Float64Array#__uget
|
|
9992
|
+
local.set $val
|
|
9909
9993
|
local.get $val
|
|
9910
|
-
local.
|
|
9994
|
+
local.get $minVal
|
|
9995
|
+
f64.lt
|
|
9996
|
+
if
|
|
9997
|
+
local.get $val
|
|
9998
|
+
local.set $minVal
|
|
9999
|
+
end
|
|
10000
|
+
local.get $i
|
|
10001
|
+
i32.const 1
|
|
10002
|
+
i32.add
|
|
10003
|
+
local.set $i
|
|
10004
|
+
br $for-loop|0
|
|
9911
10005
|
end
|
|
9912
|
-
local.get $i
|
|
9913
|
-
i32.const 1
|
|
9914
|
-
i32.add
|
|
9915
|
-
local.set $i
|
|
9916
|
-
br $for-loop|0
|
|
9917
10006
|
end
|
|
10007
|
+
local.get $minVal
|
|
10008
|
+
br $src/ops/f64-buffer/f64Min|inlined.1
|
|
9918
10009
|
end
|
|
9919
|
-
local.get $minVal
|
|
9920
10010
|
return
|
|
9921
10011
|
)
|
|
9922
10012
|
(func $src/ops/matrix/matrix_max (param $data i32) (result f64)
|
|
10013
|
+
(local $data|1 i32)
|
|
9923
10014
|
(local $len i32)
|
|
9924
10015
|
(local $maxVal f64)
|
|
9925
10016
|
(local $i i32)
|
|
9926
10017
|
(local $val f64)
|
|
9927
|
-
|
|
9928
|
-
|
|
9929
|
-
|
|
9930
|
-
|
|
9931
|
-
|
|
9932
|
-
|
|
9933
|
-
if
|
|
9934
|
-
global.get $~lib/builtins/f64.NaN
|
|
9935
|
-
return
|
|
9936
|
-
end
|
|
9937
|
-
local.get $data
|
|
9938
|
-
i32.const 0
|
|
9939
|
-
call $~lib/typedarray/Float64Array#__uget
|
|
9940
|
-
local.set $maxVal
|
|
9941
|
-
i32.const 1
|
|
9942
|
-
local.set $i
|
|
9943
|
-
loop $for-loop|0
|
|
9944
|
-
local.get $i
|
|
10018
|
+
block $src/ops/f64-buffer/f64Max|inlined.1 (result f64)
|
|
10019
|
+
local.get $data
|
|
10020
|
+
local.set $data|1
|
|
10021
|
+
local.get $data|1
|
|
10022
|
+
call $~lib/typedarray/Float64Array#get:length
|
|
10023
|
+
local.set $len
|
|
9945
10024
|
local.get $len
|
|
9946
|
-
i32.
|
|
10025
|
+
i32.const 0
|
|
10026
|
+
i32.eq
|
|
9947
10027
|
if
|
|
9948
|
-
|
|
10028
|
+
global.get $~lib/builtins/f64.NaN
|
|
10029
|
+
br $src/ops/f64-buffer/f64Max|inlined.1
|
|
10030
|
+
end
|
|
10031
|
+
local.get $data|1
|
|
10032
|
+
i32.const 0
|
|
10033
|
+
call $~lib/typedarray/Float64Array#__uget
|
|
10034
|
+
local.set $maxVal
|
|
10035
|
+
i32.const 1
|
|
10036
|
+
local.set $i
|
|
10037
|
+
loop $for-loop|0
|
|
9949
10038
|
local.get $i
|
|
9950
|
-
|
|
9951
|
-
|
|
9952
|
-
local.get $val
|
|
9953
|
-
local.get $maxVal
|
|
9954
|
-
f64.gt
|
|
10039
|
+
local.get $len
|
|
10040
|
+
i32.lt_s
|
|
9955
10041
|
if
|
|
10042
|
+
local.get $data|1
|
|
10043
|
+
local.get $i
|
|
10044
|
+
call $~lib/typedarray/Float64Array#__uget
|
|
10045
|
+
local.set $val
|
|
9956
10046
|
local.get $val
|
|
9957
|
-
local.
|
|
10047
|
+
local.get $maxVal
|
|
10048
|
+
f64.gt
|
|
10049
|
+
if
|
|
10050
|
+
local.get $val
|
|
10051
|
+
local.set $maxVal
|
|
10052
|
+
end
|
|
10053
|
+
local.get $i
|
|
10054
|
+
i32.const 1
|
|
10055
|
+
i32.add
|
|
10056
|
+
local.set $i
|
|
10057
|
+
br $for-loop|0
|
|
9958
10058
|
end
|
|
9959
|
-
local.get $i
|
|
9960
|
-
i32.const 1
|
|
9961
|
-
i32.add
|
|
9962
|
-
local.set $i
|
|
9963
|
-
br $for-loop|0
|
|
9964
10059
|
end
|
|
10060
|
+
local.get $maxVal
|
|
10061
|
+
br $src/ops/f64-buffer/f64Max|inlined.1
|
|
9965
10062
|
end
|
|
9966
|
-
local.get $maxVal
|
|
9967
10063
|
return
|
|
9968
10064
|
)
|
|
9969
10065
|
(func $src/ops/matrix/matrix_norm_frobenius (param $data i32) (result f64)
|
|
@@ -29913,7 +30009,7 @@
|
|
|
29913
30009
|
end
|
|
29914
30010
|
return
|
|
29915
30011
|
)
|
|
29916
|
-
(func $src/special/
|
|
30012
|
+
(func $src/special/_airySeries (param $x f64) (param $combine i32) (result f64)
|
|
29917
30013
|
(local $x3 f64)
|
|
29918
30014
|
(local $f f64)
|
|
29919
30015
|
(local $g f64)
|
|
@@ -29927,10 +30023,11 @@
|
|
|
29927
30023
|
(local $kf f64)
|
|
29928
30024
|
(local $df f64)
|
|
29929
30025
|
(local $dg f64)
|
|
29930
|
-
(local $x|14 f64)
|
|
29931
30026
|
(local $x|15 f64)
|
|
29932
30027
|
(local $x|16 f64)
|
|
29933
30028
|
(local $x|17 f64)
|
|
30029
|
+
(local $x|18 f64)
|
|
30030
|
+
(local $x|19 f64)
|
|
29934
30031
|
local.get $x
|
|
29935
30032
|
local.get $x
|
|
29936
30033
|
f64.mul
|
|
@@ -30046,15 +30143,15 @@
|
|
|
30046
30143
|
local.set $g
|
|
30047
30144
|
block $~lib/math/NativeMath.abs|inlined.59 (result f64)
|
|
30048
30145
|
local.get $df
|
|
30049
|
-
local.set $x|
|
|
30050
|
-
local.get $x|
|
|
30146
|
+
local.set $x|15
|
|
30147
|
+
local.get $x|15
|
|
30051
30148
|
f64.abs
|
|
30052
30149
|
br $~lib/math/NativeMath.abs|inlined.59
|
|
30053
30150
|
end
|
|
30054
30151
|
block $~lib/math/NativeMath.abs|inlined.60 (result f64)
|
|
30055
30152
|
local.get $f
|
|
30056
|
-
local.set $x|
|
|
30057
|
-
local.get $x|
|
|
30153
|
+
local.set $x|16
|
|
30154
|
+
local.get $x|16
|
|
30058
30155
|
f64.abs
|
|
30059
30156
|
br $~lib/math/NativeMath.abs|inlined.60
|
|
30060
30157
|
end
|
|
@@ -30064,15 +30161,15 @@
|
|
|
30064
30161
|
if (result i32)
|
|
30065
30162
|
block $~lib/math/NativeMath.abs|inlined.61 (result f64)
|
|
30066
30163
|
local.get $dg
|
|
30067
|
-
local.set $x|
|
|
30068
|
-
local.get $x|
|
|
30164
|
+
local.set $x|17
|
|
30165
|
+
local.get $x|17
|
|
30069
30166
|
f64.abs
|
|
30070
30167
|
br $~lib/math/NativeMath.abs|inlined.61
|
|
30071
30168
|
end
|
|
30072
30169
|
block $~lib/math/NativeMath.abs|inlined.62 (result f64)
|
|
30073
30170
|
local.get $g
|
|
30074
|
-
local.set $x|
|
|
30075
|
-
local.get $x|
|
|
30171
|
+
local.set $x|18
|
|
30172
|
+
local.get $x|18
|
|
30076
30173
|
f64.abs
|
|
30077
30174
|
br $~lib/math/NativeMath.abs|inlined.62
|
|
30078
30175
|
end
|
|
@@ -30093,13 +30190,40 @@
|
|
|
30093
30190
|
end
|
|
30094
30191
|
end
|
|
30095
30192
|
end
|
|
30193
|
+
local.get $combine
|
|
30194
|
+
i32.const 0
|
|
30195
|
+
i32.eq
|
|
30196
|
+
if
|
|
30197
|
+
global.get $src/special/AI0
|
|
30198
|
+
local.get $f
|
|
30199
|
+
f64.mul
|
|
30200
|
+
global.get $src/special/AI_PRIME0
|
|
30201
|
+
local.get $g
|
|
30202
|
+
f64.mul
|
|
30203
|
+
f64.sub
|
|
30204
|
+
return
|
|
30205
|
+
end
|
|
30206
|
+
block $~lib/math/NativeMath.sqrt|inlined.12 (result f64)
|
|
30207
|
+
f64.const 3
|
|
30208
|
+
local.set $x|19
|
|
30209
|
+
local.get $x|19
|
|
30210
|
+
f64.sqrt
|
|
30211
|
+
br $~lib/math/NativeMath.sqrt|inlined.12
|
|
30212
|
+
end
|
|
30096
30213
|
global.get $src/special/AI0
|
|
30097
30214
|
local.get $f
|
|
30098
30215
|
f64.mul
|
|
30099
30216
|
global.get $src/special/AI_PRIME0
|
|
30100
30217
|
local.get $g
|
|
30101
30218
|
f64.mul
|
|
30102
|
-
f64.
|
|
30219
|
+
f64.add
|
|
30220
|
+
f64.mul
|
|
30221
|
+
return
|
|
30222
|
+
)
|
|
30223
|
+
(func $src/special/_airyAiSeries (param $x f64) (result f64)
|
|
30224
|
+
local.get $x
|
|
30225
|
+
i32.const 0
|
|
30226
|
+
call $src/special/_airySeries
|
|
30103
30227
|
return
|
|
30104
30228
|
)
|
|
30105
30229
|
(func $src/special/_airyAi (param $x f64) (result f64)
|
|
@@ -30160,201 +30284,9 @@
|
|
|
30160
30284
|
return
|
|
30161
30285
|
)
|
|
30162
30286
|
(func $src/special/_airyBiSeries (param $x f64) (result f64)
|
|
30163
|
-
(local $x3 f64)
|
|
30164
|
-
(local $f f64)
|
|
30165
|
-
(local $g f64)
|
|
30166
|
-
(local $fTerm f64)
|
|
30167
|
-
(local $gTerm f64)
|
|
30168
|
-
(local $factF f64)
|
|
30169
|
-
(local $factG f64)
|
|
30170
|
-
(local $prodF f64)
|
|
30171
|
-
(local $prodG f64)
|
|
30172
|
-
(local $k i32)
|
|
30173
|
-
(local $kf f64)
|
|
30174
|
-
(local $df f64)
|
|
30175
|
-
(local $dg f64)
|
|
30176
|
-
(local $x|14 f64)
|
|
30177
|
-
(local $x|15 f64)
|
|
30178
|
-
(local $x|16 f64)
|
|
30179
|
-
(local $x|17 f64)
|
|
30180
|
-
(local $x|18 f64)
|
|
30181
|
-
local.get $x
|
|
30182
|
-
local.get $x
|
|
30183
|
-
f64.mul
|
|
30184
|
-
local.get $x
|
|
30185
|
-
f64.mul
|
|
30186
|
-
local.set $x3
|
|
30187
|
-
f64.const 1
|
|
30188
|
-
local.set $f
|
|
30189
30287
|
local.get $x
|
|
30190
|
-
local.set $g
|
|
30191
|
-
f64.const 1
|
|
30192
|
-
local.set $fTerm
|
|
30193
|
-
local.get $x
|
|
30194
|
-
local.set $gTerm
|
|
30195
|
-
f64.const 1
|
|
30196
|
-
local.set $factF
|
|
30197
|
-
f64.const 1
|
|
30198
|
-
local.set $factG
|
|
30199
|
-
f64.const 1
|
|
30200
|
-
local.set $prodF
|
|
30201
|
-
f64.const 1
|
|
30202
|
-
local.set $prodG
|
|
30203
30288
|
i32.const 1
|
|
30204
|
-
|
|
30205
|
-
block $for-break0
|
|
30206
|
-
loop $for-loop|0
|
|
30207
|
-
local.get $k
|
|
30208
|
-
i32.const 30
|
|
30209
|
-
i32.le_s
|
|
30210
|
-
if
|
|
30211
|
-
local.get $k
|
|
30212
|
-
f64.convert_i32_s
|
|
30213
|
-
local.set $kf
|
|
30214
|
-
local.get $factF
|
|
30215
|
-
f64.const 3
|
|
30216
|
-
local.get $kf
|
|
30217
|
-
f64.mul
|
|
30218
|
-
f64.const 2
|
|
30219
|
-
f64.sub
|
|
30220
|
-
f64.const 3
|
|
30221
|
-
local.get $kf
|
|
30222
|
-
f64.mul
|
|
30223
|
-
f64.const 1
|
|
30224
|
-
f64.sub
|
|
30225
|
-
f64.mul
|
|
30226
|
-
f64.const 3
|
|
30227
|
-
local.get $kf
|
|
30228
|
-
f64.mul
|
|
30229
|
-
f64.mul
|
|
30230
|
-
f64.mul
|
|
30231
|
-
local.set $factF
|
|
30232
|
-
local.get $factG
|
|
30233
|
-
f64.const 3
|
|
30234
|
-
local.get $kf
|
|
30235
|
-
f64.mul
|
|
30236
|
-
f64.const 1
|
|
30237
|
-
f64.sub
|
|
30238
|
-
f64.const 3
|
|
30239
|
-
local.get $kf
|
|
30240
|
-
f64.mul
|
|
30241
|
-
f64.mul
|
|
30242
|
-
f64.const 3
|
|
30243
|
-
local.get $kf
|
|
30244
|
-
f64.mul
|
|
30245
|
-
f64.const 1
|
|
30246
|
-
f64.add
|
|
30247
|
-
f64.mul
|
|
30248
|
-
f64.mul
|
|
30249
|
-
local.set $factG
|
|
30250
|
-
local.get $prodF
|
|
30251
|
-
f64.const 3
|
|
30252
|
-
local.get $kf
|
|
30253
|
-
f64.mul
|
|
30254
|
-
f64.const 2
|
|
30255
|
-
f64.sub
|
|
30256
|
-
f64.mul
|
|
30257
|
-
local.set $prodF
|
|
30258
|
-
local.get $prodG
|
|
30259
|
-
f64.const 3
|
|
30260
|
-
local.get $kf
|
|
30261
|
-
f64.mul
|
|
30262
|
-
f64.const 1
|
|
30263
|
-
f64.sub
|
|
30264
|
-
f64.mul
|
|
30265
|
-
local.set $prodG
|
|
30266
|
-
local.get $fTerm
|
|
30267
|
-
local.get $x3
|
|
30268
|
-
f64.mul
|
|
30269
|
-
local.set $fTerm
|
|
30270
|
-
local.get $gTerm
|
|
30271
|
-
local.get $x3
|
|
30272
|
-
f64.mul
|
|
30273
|
-
local.set $gTerm
|
|
30274
|
-
local.get $fTerm
|
|
30275
|
-
local.get $prodF
|
|
30276
|
-
f64.mul
|
|
30277
|
-
local.get $factF
|
|
30278
|
-
f64.div
|
|
30279
|
-
local.set $df
|
|
30280
|
-
local.get $gTerm
|
|
30281
|
-
local.get $prodG
|
|
30282
|
-
f64.mul
|
|
30283
|
-
local.get $factG
|
|
30284
|
-
f64.div
|
|
30285
|
-
local.set $dg
|
|
30286
|
-
local.get $f
|
|
30287
|
-
local.get $df
|
|
30288
|
-
f64.add
|
|
30289
|
-
local.set $f
|
|
30290
|
-
local.get $g
|
|
30291
|
-
local.get $dg
|
|
30292
|
-
f64.add
|
|
30293
|
-
local.set $g
|
|
30294
|
-
block $~lib/math/NativeMath.abs|inlined.63 (result f64)
|
|
30295
|
-
local.get $df
|
|
30296
|
-
local.set $x|14
|
|
30297
|
-
local.get $x|14
|
|
30298
|
-
f64.abs
|
|
30299
|
-
br $~lib/math/NativeMath.abs|inlined.63
|
|
30300
|
-
end
|
|
30301
|
-
block $~lib/math/NativeMath.abs|inlined.64 (result f64)
|
|
30302
|
-
local.get $f
|
|
30303
|
-
local.set $x|15
|
|
30304
|
-
local.get $x|15
|
|
30305
|
-
f64.abs
|
|
30306
|
-
br $~lib/math/NativeMath.abs|inlined.64
|
|
30307
|
-
end
|
|
30308
|
-
f64.const 1e-16
|
|
30309
|
-
f64.mul
|
|
30310
|
-
f64.lt
|
|
30311
|
-
if (result i32)
|
|
30312
|
-
block $~lib/math/NativeMath.abs|inlined.65 (result f64)
|
|
30313
|
-
local.get $dg
|
|
30314
|
-
local.set $x|16
|
|
30315
|
-
local.get $x|16
|
|
30316
|
-
f64.abs
|
|
30317
|
-
br $~lib/math/NativeMath.abs|inlined.65
|
|
30318
|
-
end
|
|
30319
|
-
block $~lib/math/NativeMath.abs|inlined.66 (result f64)
|
|
30320
|
-
local.get $g
|
|
30321
|
-
local.set $x|17
|
|
30322
|
-
local.get $x|17
|
|
30323
|
-
f64.abs
|
|
30324
|
-
br $~lib/math/NativeMath.abs|inlined.66
|
|
30325
|
-
end
|
|
30326
|
-
f64.const 1e-16
|
|
30327
|
-
f64.mul
|
|
30328
|
-
f64.lt
|
|
30329
|
-
else
|
|
30330
|
-
i32.const 0
|
|
30331
|
-
end
|
|
30332
|
-
if
|
|
30333
|
-
br $for-break0
|
|
30334
|
-
end
|
|
30335
|
-
local.get $k
|
|
30336
|
-
i32.const 1
|
|
30337
|
-
i32.add
|
|
30338
|
-
local.set $k
|
|
30339
|
-
br $for-loop|0
|
|
30340
|
-
end
|
|
30341
|
-
end
|
|
30342
|
-
end
|
|
30343
|
-
block $~lib/math/NativeMath.sqrt|inlined.12 (result f64)
|
|
30344
|
-
f64.const 3
|
|
30345
|
-
local.set $x|18
|
|
30346
|
-
local.get $x|18
|
|
30347
|
-
f64.sqrt
|
|
30348
|
-
br $~lib/math/NativeMath.sqrt|inlined.12
|
|
30349
|
-
end
|
|
30350
|
-
global.get $src/special/AI0
|
|
30351
|
-
local.get $f
|
|
30352
|
-
f64.mul
|
|
30353
|
-
global.get $src/special/AI_PRIME0
|
|
30354
|
-
local.get $g
|
|
30355
|
-
f64.mul
|
|
30356
|
-
f64.add
|
|
30357
|
-
f64.mul
|
|
30289
|
+
call $src/special/_airySeries
|
|
30358
30290
|
return
|
|
30359
30291
|
)
|
|
30360
30292
|
(func $src/special/_airyBi (param $x f64) (result f64)
|
|
@@ -30496,14 +30428,14 @@
|
|
|
30496
30428
|
br $~lib/math/NativeMath.sqrt|inlined.14
|
|
30497
30429
|
end
|
|
30498
30430
|
local.set $bNew
|
|
30499
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
30431
|
+
block $~lib/math/NativeMath.abs|inlined.63 (result f64)
|
|
30500
30432
|
local.get $aNew
|
|
30501
30433
|
local.get $bNew
|
|
30502
30434
|
f64.sub
|
|
30503
30435
|
local.set $x|8
|
|
30504
30436
|
local.get $x|8
|
|
30505
30437
|
f64.abs
|
|
30506
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
30438
|
+
br $~lib/math/NativeMath.abs|inlined.63
|
|
30507
30439
|
end
|
|
30508
30440
|
f64.const 1e-16
|
|
30509
30441
|
local.get $aNew
|
|
@@ -30686,12 +30618,12 @@
|
|
|
30686
30618
|
f64.mul
|
|
30687
30619
|
f64.add
|
|
30688
30620
|
local.set $sum
|
|
30689
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
30621
|
+
block $~lib/math/NativeMath.abs|inlined.64 (result f64)
|
|
30690
30622
|
local.get $cNew
|
|
30691
30623
|
local.set $x|13
|
|
30692
30624
|
local.get $x|13
|
|
30693
30625
|
f64.abs
|
|
30694
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
30626
|
+
br $~lib/math/NativeMath.abs|inlined.64
|
|
30695
30627
|
end
|
|
30696
30628
|
f64.const 1e-16
|
|
30697
30629
|
local.get $aNew
|
|
@@ -30795,7 +30727,7 @@
|
|
|
30795
30727
|
f64.const 0.5
|
|
30796
30728
|
f64.lt
|
|
30797
30729
|
if
|
|
30798
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
30730
|
+
block $~lib/math/NativeMath.abs|inlined.65 (result f64)
|
|
30799
30731
|
global.get $~lib/math/NativeMath.PI
|
|
30800
30732
|
local.get $x
|
|
30801
30733
|
f64.mul
|
|
@@ -30803,7 +30735,7 @@
|
|
|
30803
30735
|
local.set $x|2
|
|
30804
30736
|
local.get $x|2
|
|
30805
30737
|
f64.abs
|
|
30806
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
30738
|
+
br $~lib/math/NativeMath.abs|inlined.65
|
|
30807
30739
|
end
|
|
30808
30740
|
local.set $sinPiX
|
|
30809
30741
|
local.get $sinPiX
|
|
@@ -31022,22 +30954,22 @@
|
|
|
31022
30954
|
local.get $ave
|
|
31023
30955
|
f64.div
|
|
31024
30956
|
local.set $dy
|
|
31025
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
30957
|
+
block $~lib/math/NativeMath.abs|inlined.66 (result f64)
|
|
31026
30958
|
local.get $dx
|
|
31027
30959
|
local.set $x|10
|
|
31028
30960
|
local.get $x|10
|
|
31029
30961
|
f64.abs
|
|
31030
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
30962
|
+
br $~lib/math/NativeMath.abs|inlined.66
|
|
31031
30963
|
end
|
|
31032
30964
|
f64.const 1e-10
|
|
31033
30965
|
f64.lt
|
|
31034
30966
|
if (result i32)
|
|
31035
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
30967
|
+
block $~lib/math/NativeMath.abs|inlined.67 (result f64)
|
|
31036
30968
|
local.get $dy
|
|
31037
30969
|
local.set $x|11
|
|
31038
30970
|
local.get $x|11
|
|
31039
30971
|
f64.abs
|
|
31040
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
30972
|
+
br $~lib/math/NativeMath.abs|inlined.67
|
|
31041
30973
|
end
|
|
31042
30974
|
f64.const 1e-10
|
|
31043
30975
|
f64.lt
|
|
@@ -31271,22 +31203,22 @@
|
|
|
31271
31203
|
local.get $ave
|
|
31272
31204
|
f64.div
|
|
31273
31205
|
local.set $dz
|
|
31274
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
31206
|
+
block $~lib/math/NativeMath.abs|inlined.68 (result f64)
|
|
31275
31207
|
local.get $dx
|
|
31276
31208
|
local.set $x|18
|
|
31277
31209
|
local.get $x|18
|
|
31278
31210
|
f64.abs
|
|
31279
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
31211
|
+
br $~lib/math/NativeMath.abs|inlined.68
|
|
31280
31212
|
end
|
|
31281
31213
|
f64.const 1e-10
|
|
31282
31214
|
f64.lt
|
|
31283
31215
|
if (result i32)
|
|
31284
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
31216
|
+
block $~lib/math/NativeMath.abs|inlined.69 (result f64)
|
|
31285
31217
|
local.get $dy
|
|
31286
31218
|
local.set $x|19
|
|
31287
31219
|
local.get $x|19
|
|
31288
31220
|
f64.abs
|
|
31289
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
31221
|
+
br $~lib/math/NativeMath.abs|inlined.69
|
|
31290
31222
|
end
|
|
31291
31223
|
f64.const 1e-10
|
|
31292
31224
|
f64.lt
|
|
@@ -31294,12 +31226,12 @@
|
|
|
31294
31226
|
i32.const 0
|
|
31295
31227
|
end
|
|
31296
31228
|
if (result i32)
|
|
31297
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
31229
|
+
block $~lib/math/NativeMath.abs|inlined.70 (result f64)
|
|
31298
31230
|
local.get $dz
|
|
31299
31231
|
local.set $x|20
|
|
31300
31232
|
local.get $x|20
|
|
31301
31233
|
f64.abs
|
|
31302
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
31234
|
+
br $~lib/math/NativeMath.abs|inlined.70
|
|
31303
31235
|
end
|
|
31304
31236
|
f64.const 1e-10
|
|
31305
31237
|
f64.lt
|
|
@@ -31606,22 +31538,22 @@
|
|
|
31606
31538
|
local.get $ave
|
|
31607
31539
|
f64.div
|
|
31608
31540
|
local.set $dz
|
|
31609
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
31541
|
+
block $~lib/math/NativeMath.abs|inlined.71 (result f64)
|
|
31610
31542
|
local.get $dx
|
|
31611
31543
|
local.set $x|20
|
|
31612
31544
|
local.get $x|20
|
|
31613
31545
|
f64.abs
|
|
31614
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
31546
|
+
br $~lib/math/NativeMath.abs|inlined.71
|
|
31615
31547
|
end
|
|
31616
31548
|
f64.const 1e-10
|
|
31617
31549
|
f64.lt
|
|
31618
31550
|
if (result i32)
|
|
31619
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
31551
|
+
block $~lib/math/NativeMath.abs|inlined.72 (result f64)
|
|
31620
31552
|
local.get $dy
|
|
31621
31553
|
local.set $x|21
|
|
31622
31554
|
local.get $x|21
|
|
31623
31555
|
f64.abs
|
|
31624
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
31556
|
+
br $~lib/math/NativeMath.abs|inlined.72
|
|
31625
31557
|
end
|
|
31626
31558
|
f64.const 1e-10
|
|
31627
31559
|
f64.lt
|
|
@@ -31629,12 +31561,12 @@
|
|
|
31629
31561
|
i32.const 0
|
|
31630
31562
|
end
|
|
31631
31563
|
if (result i32)
|
|
31632
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
31564
|
+
block $~lib/math/NativeMath.abs|inlined.73 (result f64)
|
|
31633
31565
|
local.get $dz
|
|
31634
31566
|
local.set $x|22
|
|
31635
31567
|
local.get $x|22
|
|
31636
31568
|
f64.abs
|
|
31637
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
31569
|
+
br $~lib/math/NativeMath.abs|inlined.73
|
|
31638
31570
|
end
|
|
31639
31571
|
f64.const 1e-10
|
|
31640
31572
|
f64.lt
|
|
@@ -32030,22 +31962,22 @@
|
|
|
32030
31962
|
local.get $ave
|
|
32031
31963
|
f64.div
|
|
32032
31964
|
local.set $dp
|
|
32033
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
31965
|
+
block $~lib/math/NativeMath.abs|inlined.74 (result f64)
|
|
32034
31966
|
local.get $dx
|
|
32035
31967
|
local.set $x|26
|
|
32036
31968
|
local.get $x|26
|
|
32037
31969
|
f64.abs
|
|
32038
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
31970
|
+
br $~lib/math/NativeMath.abs|inlined.74
|
|
32039
31971
|
end
|
|
32040
31972
|
f64.const 1e-10
|
|
32041
31973
|
f64.lt
|
|
32042
31974
|
if (result i32)
|
|
32043
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
31975
|
+
block $~lib/math/NativeMath.abs|inlined.75 (result f64)
|
|
32044
31976
|
local.get $dy
|
|
32045
31977
|
local.set $x|27
|
|
32046
31978
|
local.get $x|27
|
|
32047
31979
|
f64.abs
|
|
32048
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
31980
|
+
br $~lib/math/NativeMath.abs|inlined.75
|
|
32049
31981
|
end
|
|
32050
31982
|
f64.const 1e-10
|
|
32051
31983
|
f64.lt
|
|
@@ -32053,12 +31985,12 @@
|
|
|
32053
31985
|
i32.const 0
|
|
32054
31986
|
end
|
|
32055
31987
|
if (result i32)
|
|
32056
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
31988
|
+
block $~lib/math/NativeMath.abs|inlined.76 (result f64)
|
|
32057
31989
|
local.get $dz
|
|
32058
31990
|
local.set $x|28
|
|
32059
31991
|
local.get $x|28
|
|
32060
31992
|
f64.abs
|
|
32061
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
31993
|
+
br $~lib/math/NativeMath.abs|inlined.76
|
|
32062
31994
|
end
|
|
32063
31995
|
f64.const 1e-10
|
|
32064
31996
|
f64.lt
|
|
@@ -32066,12 +31998,12 @@
|
|
|
32066
31998
|
i32.const 0
|
|
32067
31999
|
end
|
|
32068
32000
|
if (result i32)
|
|
32069
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
32001
|
+
block $~lib/math/NativeMath.abs|inlined.77 (result f64)
|
|
32070
32002
|
local.get $dp
|
|
32071
32003
|
local.set $x|29
|
|
32072
32004
|
local.get $x|29
|
|
32073
32005
|
f64.abs
|
|
32074
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
32006
|
+
br $~lib/math/NativeMath.abs|inlined.77
|
|
32075
32007
|
end
|
|
32076
32008
|
f64.const 1e-10
|
|
32077
32009
|
f64.lt
|
|
@@ -32575,13 +32507,81 @@
|
|
|
32575
32507
|
local.get $out
|
|
32576
32508
|
return
|
|
32577
32509
|
)
|
|
32510
|
+
(func $src/sort/ilog2 (param $n i32) (result i32)
|
|
32511
|
+
(local $v i32)
|
|
32512
|
+
(local $r i32)
|
|
32513
|
+
local.get $n
|
|
32514
|
+
local.set $v
|
|
32515
|
+
i32.const 0
|
|
32516
|
+
local.set $r
|
|
32517
|
+
loop $while-continue|0
|
|
32518
|
+
local.get $v
|
|
32519
|
+
i32.const 1
|
|
32520
|
+
i32.gt_s
|
|
32521
|
+
if
|
|
32522
|
+
local.get $v
|
|
32523
|
+
i32.const 1
|
|
32524
|
+
i32.shr_s
|
|
32525
|
+
local.set $v
|
|
32526
|
+
local.get $r
|
|
32527
|
+
i32.const 1
|
|
32528
|
+
i32.add
|
|
32529
|
+
local.set $r
|
|
32530
|
+
br $while-continue|0
|
|
32531
|
+
end
|
|
32532
|
+
end
|
|
32533
|
+
local.get $r
|
|
32534
|
+
return
|
|
32535
|
+
)
|
|
32536
|
+
(func $src/sort/cmpNanLast (param $a f64) (param $b f64) (result i32)
|
|
32537
|
+
local.get $a
|
|
32538
|
+
local.get $b
|
|
32539
|
+
f64.lt
|
|
32540
|
+
if
|
|
32541
|
+
i32.const -1
|
|
32542
|
+
return
|
|
32543
|
+
end
|
|
32544
|
+
local.get $a
|
|
32545
|
+
local.get $b
|
|
32546
|
+
f64.gt
|
|
32547
|
+
if
|
|
32548
|
+
i32.const 1
|
|
32549
|
+
return
|
|
32550
|
+
end
|
|
32551
|
+
local.get $a
|
|
32552
|
+
local.get $b
|
|
32553
|
+
f64.eq
|
|
32554
|
+
if
|
|
32555
|
+
i32.const 0
|
|
32556
|
+
return
|
|
32557
|
+
end
|
|
32558
|
+
local.get $a
|
|
32559
|
+
local.get $a
|
|
32560
|
+
f64.ne
|
|
32561
|
+
if (result i32)
|
|
32562
|
+
local.get $b
|
|
32563
|
+
local.get $b
|
|
32564
|
+
f64.ne
|
|
32565
|
+
else
|
|
32566
|
+
i32.const 0
|
|
32567
|
+
end
|
|
32568
|
+
if
|
|
32569
|
+
i32.const 0
|
|
32570
|
+
return
|
|
32571
|
+
end
|
|
32572
|
+
local.get $a
|
|
32573
|
+
local.get $a
|
|
32574
|
+
f64.ne
|
|
32575
|
+
if
|
|
32576
|
+
i32.const 1
|
|
32577
|
+
return
|
|
32578
|
+
end
|
|
32579
|
+
i32.const -1
|
|
32580
|
+
return
|
|
32581
|
+
)
|
|
32578
32582
|
(func $src/sort/_siftDown (param $arr i32) (param $lo i32) (param $start i32) (param $n i32)
|
|
32579
32583
|
(local $root i32)
|
|
32580
32584
|
(local $child i32)
|
|
32581
|
-
(local $a f64)
|
|
32582
|
-
(local $b f64)
|
|
32583
|
-
(local $a|8 f64)
|
|
32584
|
-
(local $b|9 f64)
|
|
32585
32585
|
(local $t f64)
|
|
32586
32586
|
local.get $start
|
|
32587
32587
|
local.set $root
|
|
@@ -32607,66 +32607,19 @@
|
|
|
32607
32607
|
local.get $n
|
|
32608
32608
|
i32.lt_s
|
|
32609
32609
|
if (result i32)
|
|
32610
|
-
|
|
32611
|
-
|
|
32612
|
-
|
|
32613
|
-
|
|
32614
|
-
|
|
32615
|
-
|
|
32616
|
-
|
|
32617
|
-
|
|
32618
|
-
|
|
32619
|
-
|
|
32620
|
-
|
|
32621
|
-
|
|
32622
|
-
|
|
32623
|
-
call $~lib/typedarray/Float64Array#__get
|
|
32624
|
-
local.set $b
|
|
32625
|
-
local.get $a
|
|
32626
|
-
local.get $b
|
|
32627
|
-
f64.lt
|
|
32628
|
-
if
|
|
32629
|
-
i32.const -1
|
|
32630
|
-
br $src/sort/cmpNanLast|inlined.0
|
|
32631
|
-
end
|
|
32632
|
-
local.get $a
|
|
32633
|
-
local.get $b
|
|
32634
|
-
f64.gt
|
|
32635
|
-
if
|
|
32636
|
-
i32.const 1
|
|
32637
|
-
br $src/sort/cmpNanLast|inlined.0
|
|
32638
|
-
end
|
|
32639
|
-
local.get $a
|
|
32640
|
-
local.get $b
|
|
32641
|
-
f64.eq
|
|
32642
|
-
if
|
|
32643
|
-
i32.const 0
|
|
32644
|
-
br $src/sort/cmpNanLast|inlined.0
|
|
32645
|
-
end
|
|
32646
|
-
local.get $a
|
|
32647
|
-
local.get $a
|
|
32648
|
-
f64.ne
|
|
32649
|
-
if (result i32)
|
|
32650
|
-
local.get $b
|
|
32651
|
-
local.get $b
|
|
32652
|
-
f64.ne
|
|
32653
|
-
else
|
|
32654
|
-
i32.const 0
|
|
32655
|
-
end
|
|
32656
|
-
if
|
|
32657
|
-
i32.const 0
|
|
32658
|
-
br $src/sort/cmpNanLast|inlined.0
|
|
32659
|
-
end
|
|
32660
|
-
local.get $a
|
|
32661
|
-
local.get $a
|
|
32662
|
-
f64.ne
|
|
32663
|
-
if
|
|
32664
|
-
i32.const 1
|
|
32665
|
-
br $src/sort/cmpNanLast|inlined.0
|
|
32666
|
-
end
|
|
32667
|
-
i32.const -1
|
|
32668
|
-
br $src/sort/cmpNanLast|inlined.0
|
|
32669
|
-
end
|
|
32610
|
+
local.get $arr
|
|
32611
|
+
local.get $lo
|
|
32612
|
+
local.get $child
|
|
32613
|
+
i32.add
|
|
32614
|
+
call $~lib/typedarray/Float64Array#__get
|
|
32615
|
+
local.get $arr
|
|
32616
|
+
local.get $lo
|
|
32617
|
+
local.get $child
|
|
32618
|
+
i32.add
|
|
32619
|
+
i32.const 1
|
|
32620
|
+
i32.add
|
|
32621
|
+
call $~lib/typedarray/Float64Array#__get
|
|
32622
|
+
call $src/sort/cmpNanLast
|
|
32670
32623
|
i32.const 0
|
|
32671
32624
|
i32.lt_s
|
|
32672
32625
|
else
|
|
@@ -32678,64 +32631,17 @@
|
|
|
32678
32631
|
i32.add
|
|
32679
32632
|
local.set $child
|
|
32680
32633
|
end
|
|
32681
|
-
|
|
32682
|
-
|
|
32683
|
-
|
|
32684
|
-
|
|
32685
|
-
|
|
32686
|
-
|
|
32687
|
-
|
|
32688
|
-
|
|
32689
|
-
|
|
32690
|
-
|
|
32691
|
-
|
|
32692
|
-
call $~lib/typedarray/Float64Array#__get
|
|
32693
|
-
local.set $b|9
|
|
32694
|
-
local.get $a|8
|
|
32695
|
-
local.get $b|9
|
|
32696
|
-
f64.lt
|
|
32697
|
-
if
|
|
32698
|
-
i32.const -1
|
|
32699
|
-
br $src/sort/cmpNanLast|inlined.1
|
|
32700
|
-
end
|
|
32701
|
-
local.get $a|8
|
|
32702
|
-
local.get $b|9
|
|
32703
|
-
f64.gt
|
|
32704
|
-
if
|
|
32705
|
-
i32.const 1
|
|
32706
|
-
br $src/sort/cmpNanLast|inlined.1
|
|
32707
|
-
end
|
|
32708
|
-
local.get $a|8
|
|
32709
|
-
local.get $b|9
|
|
32710
|
-
f64.eq
|
|
32711
|
-
if
|
|
32712
|
-
i32.const 0
|
|
32713
|
-
br $src/sort/cmpNanLast|inlined.1
|
|
32714
|
-
end
|
|
32715
|
-
local.get $a|8
|
|
32716
|
-
local.get $a|8
|
|
32717
|
-
f64.ne
|
|
32718
|
-
if (result i32)
|
|
32719
|
-
local.get $b|9
|
|
32720
|
-
local.get $b|9
|
|
32721
|
-
f64.ne
|
|
32722
|
-
else
|
|
32723
|
-
i32.const 0
|
|
32724
|
-
end
|
|
32725
|
-
if
|
|
32726
|
-
i32.const 0
|
|
32727
|
-
br $src/sort/cmpNanLast|inlined.1
|
|
32728
|
-
end
|
|
32729
|
-
local.get $a|8
|
|
32730
|
-
local.get $a|8
|
|
32731
|
-
f64.ne
|
|
32732
|
-
if
|
|
32733
|
-
i32.const 1
|
|
32734
|
-
br $src/sort/cmpNanLast|inlined.1
|
|
32735
|
-
end
|
|
32736
|
-
i32.const -1
|
|
32737
|
-
br $src/sort/cmpNanLast|inlined.1
|
|
32738
|
-
end
|
|
32634
|
+
local.get $arr
|
|
32635
|
+
local.get $lo
|
|
32636
|
+
local.get $root
|
|
32637
|
+
i32.add
|
|
32638
|
+
call $~lib/typedarray/Float64Array#__get
|
|
32639
|
+
local.get $arr
|
|
32640
|
+
local.get $lo
|
|
32641
|
+
local.get $child
|
|
32642
|
+
i32.add
|
|
32643
|
+
call $~lib/typedarray/Float64Array#__get
|
|
32644
|
+
call $src/sort/cmpNanLast
|
|
32739
32645
|
i32.const 0
|
|
32740
32646
|
i32.lt_s
|
|
32741
32647
|
if
|
|
@@ -32845,12 +32751,59 @@
|
|
|
32845
32751
|
end
|
|
32846
32752
|
end
|
|
32847
32753
|
)
|
|
32754
|
+
(func $src/sort/_median3 (param $a f64) (param $b f64) (param $c f64) (result f64)
|
|
32755
|
+
local.get $a
|
|
32756
|
+
local.get $b
|
|
32757
|
+
call $src/sort/cmpNanLast
|
|
32758
|
+
i32.const 0
|
|
32759
|
+
i32.lt_s
|
|
32760
|
+
if
|
|
32761
|
+
local.get $b
|
|
32762
|
+
local.get $c
|
|
32763
|
+
call $src/sort/cmpNanLast
|
|
32764
|
+
i32.const 0
|
|
32765
|
+
i32.lt_s
|
|
32766
|
+
if
|
|
32767
|
+
local.get $b
|
|
32768
|
+
return
|
|
32769
|
+
end
|
|
32770
|
+
local.get $a
|
|
32771
|
+
local.get $c
|
|
32772
|
+
call $src/sort/cmpNanLast
|
|
32773
|
+
i32.const 0
|
|
32774
|
+
i32.lt_s
|
|
32775
|
+
if (result f64)
|
|
32776
|
+
local.get $c
|
|
32777
|
+
else
|
|
32778
|
+
local.get $a
|
|
32779
|
+
end
|
|
32780
|
+
return
|
|
32781
|
+
end
|
|
32782
|
+
local.get $a
|
|
32783
|
+
local.get $c
|
|
32784
|
+
call $src/sort/cmpNanLast
|
|
32785
|
+
i32.const 0
|
|
32786
|
+
i32.lt_s
|
|
32787
|
+
if
|
|
32788
|
+
local.get $a
|
|
32789
|
+
return
|
|
32790
|
+
end
|
|
32791
|
+
local.get $b
|
|
32792
|
+
local.get $c
|
|
32793
|
+
call $src/sort/cmpNanLast
|
|
32794
|
+
i32.const 0
|
|
32795
|
+
i32.lt_s
|
|
32796
|
+
if (result f64)
|
|
32797
|
+
local.get $c
|
|
32798
|
+
else
|
|
32799
|
+
local.get $b
|
|
32800
|
+
end
|
|
32801
|
+
return
|
|
32802
|
+
)
|
|
32848
32803
|
(func $src/sort/_insertionSort (param $arr i32) (param $lo i32) (param $hi i32)
|
|
32849
32804
|
(local $i i32)
|
|
32850
32805
|
(local $key f64)
|
|
32851
32806
|
(local $j i32)
|
|
32852
|
-
(local $a f64)
|
|
32853
|
-
(local $b f64)
|
|
32854
32807
|
local.get $lo
|
|
32855
32808
|
i32.const 1
|
|
32856
32809
|
i32.add
|
|
@@ -32873,58 +32826,11 @@
|
|
|
32873
32826
|
local.get $lo
|
|
32874
32827
|
i32.ge_s
|
|
32875
32828
|
if (result i32)
|
|
32876
|
-
|
|
32877
|
-
|
|
32878
|
-
|
|
32879
|
-
|
|
32880
|
-
|
|
32881
|
-
local.get $key
|
|
32882
|
-
local.set $b
|
|
32883
|
-
local.get $a
|
|
32884
|
-
local.get $b
|
|
32885
|
-
f64.lt
|
|
32886
|
-
if
|
|
32887
|
-
i32.const -1
|
|
32888
|
-
br $src/sort/cmpNanLast|inlined.8
|
|
32889
|
-
end
|
|
32890
|
-
local.get $a
|
|
32891
|
-
local.get $b
|
|
32892
|
-
f64.gt
|
|
32893
|
-
if
|
|
32894
|
-
i32.const 1
|
|
32895
|
-
br $src/sort/cmpNanLast|inlined.8
|
|
32896
|
-
end
|
|
32897
|
-
local.get $a
|
|
32898
|
-
local.get $b
|
|
32899
|
-
f64.eq
|
|
32900
|
-
if
|
|
32901
|
-
i32.const 0
|
|
32902
|
-
br $src/sort/cmpNanLast|inlined.8
|
|
32903
|
-
end
|
|
32904
|
-
local.get $a
|
|
32905
|
-
local.get $a
|
|
32906
|
-
f64.ne
|
|
32907
|
-
if (result i32)
|
|
32908
|
-
local.get $b
|
|
32909
|
-
local.get $b
|
|
32910
|
-
f64.ne
|
|
32911
|
-
else
|
|
32912
|
-
i32.const 0
|
|
32913
|
-
end
|
|
32914
|
-
if
|
|
32915
|
-
i32.const 0
|
|
32916
|
-
br $src/sort/cmpNanLast|inlined.8
|
|
32917
|
-
end
|
|
32918
|
-
local.get $a
|
|
32919
|
-
local.get $a
|
|
32920
|
-
f64.ne
|
|
32921
|
-
if
|
|
32922
|
-
i32.const 1
|
|
32923
|
-
br $src/sort/cmpNanLast|inlined.8
|
|
32924
|
-
end
|
|
32925
|
-
i32.const -1
|
|
32926
|
-
br $src/sort/cmpNanLast|inlined.8
|
|
32927
|
-
end
|
|
32829
|
+
local.get $arr
|
|
32830
|
+
local.get $j
|
|
32831
|
+
call $~lib/typedarray/Float64Array#__get
|
|
32832
|
+
local.get $key
|
|
32833
|
+
call $src/sort/cmpNanLast
|
|
32928
32834
|
i32.const 0
|
|
32929
32835
|
i32.gt_s
|
|
32930
32836
|
else
|
|
@@ -32965,28 +32871,13 @@
|
|
|
32965
32871
|
(local $h i32)
|
|
32966
32872
|
(local $d i32)
|
|
32967
32873
|
(local $mid i32)
|
|
32968
|
-
(local $a f64)
|
|
32969
|
-
(local $b f64)
|
|
32970
|
-
(local $c f64)
|
|
32971
|
-
(local $a|11 f64)
|
|
32972
|
-
(local $b|12 f64)
|
|
32973
|
-
(local $a|13 f64)
|
|
32974
|
-
(local $b|14 f64)
|
|
32975
|
-
(local $a|15 f64)
|
|
32976
|
-
(local $b|16 f64)
|
|
32977
|
-
(local $a|17 f64)
|
|
32978
|
-
(local $b|18 f64)
|
|
32979
|
-
(local $a|19 f64)
|
|
32980
|
-
(local $b|20 f64)
|
|
32981
32874
|
(local $pivot f64)
|
|
32982
32875
|
(local $lt i32)
|
|
32983
32876
|
(local $gt i32)
|
|
32984
32877
|
(local $i i32)
|
|
32985
|
-
(local $
|
|
32986
|
-
(local $b|26 f64)
|
|
32987
|
-
(local $c|27 i32)
|
|
32878
|
+
(local $c i32)
|
|
32988
32879
|
(local $t f64)
|
|
32989
|
-
(local $t|
|
|
32880
|
+
(local $t|14 f64)
|
|
32990
32881
|
local.get $lo
|
|
32991
32882
|
local.set $l
|
|
32992
32883
|
local.get $hi
|
|
@@ -33022,302 +32913,16 @@
|
|
|
33022
32913
|
i32.shr_s
|
|
33023
32914
|
i32.add
|
|
33024
32915
|
local.set $mid
|
|
33025
|
-
|
|
33026
|
-
|
|
33027
|
-
|
|
33028
|
-
|
|
33029
|
-
|
|
33030
|
-
|
|
33031
|
-
|
|
33032
|
-
|
|
33033
|
-
|
|
33034
|
-
|
|
33035
|
-
local.get $h
|
|
33036
|
-
call $~lib/typedarray/Float64Array#__get
|
|
33037
|
-
local.set $c
|
|
33038
|
-
block $src/sort/cmpNanLast|inlined.2 (result i32)
|
|
33039
|
-
local.get $a
|
|
33040
|
-
local.set $a|11
|
|
33041
|
-
local.get $b
|
|
33042
|
-
local.set $b|12
|
|
33043
|
-
local.get $a|11
|
|
33044
|
-
local.get $b|12
|
|
33045
|
-
f64.lt
|
|
33046
|
-
if
|
|
33047
|
-
i32.const -1
|
|
33048
|
-
br $src/sort/cmpNanLast|inlined.2
|
|
33049
|
-
end
|
|
33050
|
-
local.get $a|11
|
|
33051
|
-
local.get $b|12
|
|
33052
|
-
f64.gt
|
|
33053
|
-
if
|
|
33054
|
-
i32.const 1
|
|
33055
|
-
br $src/sort/cmpNanLast|inlined.2
|
|
33056
|
-
end
|
|
33057
|
-
local.get $a|11
|
|
33058
|
-
local.get $b|12
|
|
33059
|
-
f64.eq
|
|
33060
|
-
if
|
|
33061
|
-
i32.const 0
|
|
33062
|
-
br $src/sort/cmpNanLast|inlined.2
|
|
33063
|
-
end
|
|
33064
|
-
local.get $a|11
|
|
33065
|
-
local.get $a|11
|
|
33066
|
-
f64.ne
|
|
33067
|
-
if (result i32)
|
|
33068
|
-
local.get $b|12
|
|
33069
|
-
local.get $b|12
|
|
33070
|
-
f64.ne
|
|
33071
|
-
else
|
|
33072
|
-
i32.const 0
|
|
33073
|
-
end
|
|
33074
|
-
if
|
|
33075
|
-
i32.const 0
|
|
33076
|
-
br $src/sort/cmpNanLast|inlined.2
|
|
33077
|
-
end
|
|
33078
|
-
local.get $a|11
|
|
33079
|
-
local.get $a|11
|
|
33080
|
-
f64.ne
|
|
33081
|
-
if
|
|
33082
|
-
i32.const 1
|
|
33083
|
-
br $src/sort/cmpNanLast|inlined.2
|
|
33084
|
-
end
|
|
33085
|
-
i32.const -1
|
|
33086
|
-
br $src/sort/cmpNanLast|inlined.2
|
|
33087
|
-
end
|
|
33088
|
-
i32.const 0
|
|
33089
|
-
i32.lt_s
|
|
33090
|
-
if
|
|
33091
|
-
block $src/sort/cmpNanLast|inlined.3 (result i32)
|
|
33092
|
-
local.get $b
|
|
33093
|
-
local.set $a|13
|
|
33094
|
-
local.get $c
|
|
33095
|
-
local.set $b|14
|
|
33096
|
-
local.get $a|13
|
|
33097
|
-
local.get $b|14
|
|
33098
|
-
f64.lt
|
|
33099
|
-
if
|
|
33100
|
-
i32.const -1
|
|
33101
|
-
br $src/sort/cmpNanLast|inlined.3
|
|
33102
|
-
end
|
|
33103
|
-
local.get $a|13
|
|
33104
|
-
local.get $b|14
|
|
33105
|
-
f64.gt
|
|
33106
|
-
if
|
|
33107
|
-
i32.const 1
|
|
33108
|
-
br $src/sort/cmpNanLast|inlined.3
|
|
33109
|
-
end
|
|
33110
|
-
local.get $a|13
|
|
33111
|
-
local.get $b|14
|
|
33112
|
-
f64.eq
|
|
33113
|
-
if
|
|
33114
|
-
i32.const 0
|
|
33115
|
-
br $src/sort/cmpNanLast|inlined.3
|
|
33116
|
-
end
|
|
33117
|
-
local.get $a|13
|
|
33118
|
-
local.get $a|13
|
|
33119
|
-
f64.ne
|
|
33120
|
-
if (result i32)
|
|
33121
|
-
local.get $b|14
|
|
33122
|
-
local.get $b|14
|
|
33123
|
-
f64.ne
|
|
33124
|
-
else
|
|
33125
|
-
i32.const 0
|
|
33126
|
-
end
|
|
33127
|
-
if
|
|
33128
|
-
i32.const 0
|
|
33129
|
-
br $src/sort/cmpNanLast|inlined.3
|
|
33130
|
-
end
|
|
33131
|
-
local.get $a|13
|
|
33132
|
-
local.get $a|13
|
|
33133
|
-
f64.ne
|
|
33134
|
-
if
|
|
33135
|
-
i32.const 1
|
|
33136
|
-
br $src/sort/cmpNanLast|inlined.3
|
|
33137
|
-
end
|
|
33138
|
-
i32.const -1
|
|
33139
|
-
br $src/sort/cmpNanLast|inlined.3
|
|
33140
|
-
end
|
|
33141
|
-
i32.const 0
|
|
33142
|
-
i32.lt_s
|
|
33143
|
-
if
|
|
33144
|
-
local.get $b
|
|
33145
|
-
br $src/sort/_median3|inlined.0
|
|
33146
|
-
end
|
|
33147
|
-
block $src/sort/cmpNanLast|inlined.4 (result i32)
|
|
33148
|
-
local.get $a
|
|
33149
|
-
local.set $a|15
|
|
33150
|
-
local.get $c
|
|
33151
|
-
local.set $b|16
|
|
33152
|
-
local.get $a|15
|
|
33153
|
-
local.get $b|16
|
|
33154
|
-
f64.lt
|
|
33155
|
-
if
|
|
33156
|
-
i32.const -1
|
|
33157
|
-
br $src/sort/cmpNanLast|inlined.4
|
|
33158
|
-
end
|
|
33159
|
-
local.get $a|15
|
|
33160
|
-
local.get $b|16
|
|
33161
|
-
f64.gt
|
|
33162
|
-
if
|
|
33163
|
-
i32.const 1
|
|
33164
|
-
br $src/sort/cmpNanLast|inlined.4
|
|
33165
|
-
end
|
|
33166
|
-
local.get $a|15
|
|
33167
|
-
local.get $b|16
|
|
33168
|
-
f64.eq
|
|
33169
|
-
if
|
|
33170
|
-
i32.const 0
|
|
33171
|
-
br $src/sort/cmpNanLast|inlined.4
|
|
33172
|
-
end
|
|
33173
|
-
local.get $a|15
|
|
33174
|
-
local.get $a|15
|
|
33175
|
-
f64.ne
|
|
33176
|
-
if (result i32)
|
|
33177
|
-
local.get $b|16
|
|
33178
|
-
local.get $b|16
|
|
33179
|
-
f64.ne
|
|
33180
|
-
else
|
|
33181
|
-
i32.const 0
|
|
33182
|
-
end
|
|
33183
|
-
if
|
|
33184
|
-
i32.const 0
|
|
33185
|
-
br $src/sort/cmpNanLast|inlined.4
|
|
33186
|
-
end
|
|
33187
|
-
local.get $a|15
|
|
33188
|
-
local.get $a|15
|
|
33189
|
-
f64.ne
|
|
33190
|
-
if
|
|
33191
|
-
i32.const 1
|
|
33192
|
-
br $src/sort/cmpNanLast|inlined.4
|
|
33193
|
-
end
|
|
33194
|
-
i32.const -1
|
|
33195
|
-
br $src/sort/cmpNanLast|inlined.4
|
|
33196
|
-
end
|
|
33197
|
-
i32.const 0
|
|
33198
|
-
i32.lt_s
|
|
33199
|
-
if (result f64)
|
|
33200
|
-
local.get $c
|
|
33201
|
-
else
|
|
33202
|
-
local.get $a
|
|
33203
|
-
end
|
|
33204
|
-
br $src/sort/_median3|inlined.0
|
|
33205
|
-
end
|
|
33206
|
-
block $src/sort/cmpNanLast|inlined.5 (result i32)
|
|
33207
|
-
local.get $a
|
|
33208
|
-
local.set $a|17
|
|
33209
|
-
local.get $c
|
|
33210
|
-
local.set $b|18
|
|
33211
|
-
local.get $a|17
|
|
33212
|
-
local.get $b|18
|
|
33213
|
-
f64.lt
|
|
33214
|
-
if
|
|
33215
|
-
i32.const -1
|
|
33216
|
-
br $src/sort/cmpNanLast|inlined.5
|
|
33217
|
-
end
|
|
33218
|
-
local.get $a|17
|
|
33219
|
-
local.get $b|18
|
|
33220
|
-
f64.gt
|
|
33221
|
-
if
|
|
33222
|
-
i32.const 1
|
|
33223
|
-
br $src/sort/cmpNanLast|inlined.5
|
|
33224
|
-
end
|
|
33225
|
-
local.get $a|17
|
|
33226
|
-
local.get $b|18
|
|
33227
|
-
f64.eq
|
|
33228
|
-
if
|
|
33229
|
-
i32.const 0
|
|
33230
|
-
br $src/sort/cmpNanLast|inlined.5
|
|
33231
|
-
end
|
|
33232
|
-
local.get $a|17
|
|
33233
|
-
local.get $a|17
|
|
33234
|
-
f64.ne
|
|
33235
|
-
if (result i32)
|
|
33236
|
-
local.get $b|18
|
|
33237
|
-
local.get $b|18
|
|
33238
|
-
f64.ne
|
|
33239
|
-
else
|
|
33240
|
-
i32.const 0
|
|
33241
|
-
end
|
|
33242
|
-
if
|
|
33243
|
-
i32.const 0
|
|
33244
|
-
br $src/sort/cmpNanLast|inlined.5
|
|
33245
|
-
end
|
|
33246
|
-
local.get $a|17
|
|
33247
|
-
local.get $a|17
|
|
33248
|
-
f64.ne
|
|
33249
|
-
if
|
|
33250
|
-
i32.const 1
|
|
33251
|
-
br $src/sort/cmpNanLast|inlined.5
|
|
33252
|
-
end
|
|
33253
|
-
i32.const -1
|
|
33254
|
-
br $src/sort/cmpNanLast|inlined.5
|
|
33255
|
-
end
|
|
33256
|
-
i32.const 0
|
|
33257
|
-
i32.lt_s
|
|
33258
|
-
if
|
|
33259
|
-
local.get $a
|
|
33260
|
-
br $src/sort/_median3|inlined.0
|
|
33261
|
-
end
|
|
33262
|
-
block $src/sort/cmpNanLast|inlined.6 (result i32)
|
|
33263
|
-
local.get $b
|
|
33264
|
-
local.set $a|19
|
|
33265
|
-
local.get $c
|
|
33266
|
-
local.set $b|20
|
|
33267
|
-
local.get $a|19
|
|
33268
|
-
local.get $b|20
|
|
33269
|
-
f64.lt
|
|
33270
|
-
if
|
|
33271
|
-
i32.const -1
|
|
33272
|
-
br $src/sort/cmpNanLast|inlined.6
|
|
33273
|
-
end
|
|
33274
|
-
local.get $a|19
|
|
33275
|
-
local.get $b|20
|
|
33276
|
-
f64.gt
|
|
33277
|
-
if
|
|
33278
|
-
i32.const 1
|
|
33279
|
-
br $src/sort/cmpNanLast|inlined.6
|
|
33280
|
-
end
|
|
33281
|
-
local.get $a|19
|
|
33282
|
-
local.get $b|20
|
|
33283
|
-
f64.eq
|
|
33284
|
-
if
|
|
33285
|
-
i32.const 0
|
|
33286
|
-
br $src/sort/cmpNanLast|inlined.6
|
|
33287
|
-
end
|
|
33288
|
-
local.get $a|19
|
|
33289
|
-
local.get $a|19
|
|
33290
|
-
f64.ne
|
|
33291
|
-
if (result i32)
|
|
33292
|
-
local.get $b|20
|
|
33293
|
-
local.get $b|20
|
|
33294
|
-
f64.ne
|
|
33295
|
-
else
|
|
33296
|
-
i32.const 0
|
|
33297
|
-
end
|
|
33298
|
-
if
|
|
33299
|
-
i32.const 0
|
|
33300
|
-
br $src/sort/cmpNanLast|inlined.6
|
|
33301
|
-
end
|
|
33302
|
-
local.get $a|19
|
|
33303
|
-
local.get $a|19
|
|
33304
|
-
f64.ne
|
|
33305
|
-
if
|
|
33306
|
-
i32.const 1
|
|
33307
|
-
br $src/sort/cmpNanLast|inlined.6
|
|
33308
|
-
end
|
|
33309
|
-
i32.const -1
|
|
33310
|
-
br $src/sort/cmpNanLast|inlined.6
|
|
33311
|
-
end
|
|
33312
|
-
i32.const 0
|
|
33313
|
-
i32.lt_s
|
|
33314
|
-
if (result f64)
|
|
33315
|
-
local.get $c
|
|
33316
|
-
else
|
|
33317
|
-
local.get $b
|
|
33318
|
-
end
|
|
33319
|
-
br $src/sort/_median3|inlined.0
|
|
33320
|
-
end
|
|
32916
|
+
local.get $arr
|
|
32917
|
+
local.get $l
|
|
32918
|
+
call $~lib/typedarray/Float64Array#__get
|
|
32919
|
+
local.get $arr
|
|
32920
|
+
local.get $mid
|
|
32921
|
+
call $~lib/typedarray/Float64Array#__get
|
|
32922
|
+
local.get $arr
|
|
32923
|
+
local.get $h
|
|
32924
|
+
call $~lib/typedarray/Float64Array#__get
|
|
32925
|
+
call $src/sort/_median3
|
|
33321
32926
|
local.set $pivot
|
|
33322
32927
|
local.get $l
|
|
33323
32928
|
local.set $lt
|
|
@@ -33330,60 +32935,13 @@
|
|
|
33330
32935
|
local.get $gt
|
|
33331
32936
|
i32.le_s
|
|
33332
32937
|
if
|
|
33333
|
-
|
|
33334
|
-
|
|
33335
|
-
|
|
33336
|
-
|
|
33337
|
-
|
|
33338
|
-
|
|
33339
|
-
|
|
33340
|
-
local.get $a|25
|
|
33341
|
-
local.get $b|26
|
|
33342
|
-
f64.lt
|
|
33343
|
-
if
|
|
33344
|
-
i32.const -1
|
|
33345
|
-
br $src/sort/cmpNanLast|inlined.7
|
|
33346
|
-
end
|
|
33347
|
-
local.get $a|25
|
|
33348
|
-
local.get $b|26
|
|
33349
|
-
f64.gt
|
|
33350
|
-
if
|
|
33351
|
-
i32.const 1
|
|
33352
|
-
br $src/sort/cmpNanLast|inlined.7
|
|
33353
|
-
end
|
|
33354
|
-
local.get $a|25
|
|
33355
|
-
local.get $b|26
|
|
33356
|
-
f64.eq
|
|
33357
|
-
if
|
|
33358
|
-
i32.const 0
|
|
33359
|
-
br $src/sort/cmpNanLast|inlined.7
|
|
33360
|
-
end
|
|
33361
|
-
local.get $a|25
|
|
33362
|
-
local.get $a|25
|
|
33363
|
-
f64.ne
|
|
33364
|
-
if (result i32)
|
|
33365
|
-
local.get $b|26
|
|
33366
|
-
local.get $b|26
|
|
33367
|
-
f64.ne
|
|
33368
|
-
else
|
|
33369
|
-
i32.const 0
|
|
33370
|
-
end
|
|
33371
|
-
if
|
|
33372
|
-
i32.const 0
|
|
33373
|
-
br $src/sort/cmpNanLast|inlined.7
|
|
33374
|
-
end
|
|
33375
|
-
local.get $a|25
|
|
33376
|
-
local.get $a|25
|
|
33377
|
-
f64.ne
|
|
33378
|
-
if
|
|
33379
|
-
i32.const 1
|
|
33380
|
-
br $src/sort/cmpNanLast|inlined.7
|
|
33381
|
-
end
|
|
33382
|
-
i32.const -1
|
|
33383
|
-
br $src/sort/cmpNanLast|inlined.7
|
|
33384
|
-
end
|
|
33385
|
-
local.set $c|27
|
|
33386
|
-
local.get $c|27
|
|
32938
|
+
local.get $arr
|
|
32939
|
+
local.get $i
|
|
32940
|
+
call $~lib/typedarray/Float64Array#__get
|
|
32941
|
+
local.get $pivot
|
|
32942
|
+
call $src/sort/cmpNanLast
|
|
32943
|
+
local.set $c
|
|
32944
|
+
local.get $c
|
|
33387
32945
|
i32.const 0
|
|
33388
32946
|
i32.lt_s
|
|
33389
32947
|
if
|
|
@@ -33410,14 +32968,14 @@
|
|
|
33410
32968
|
i32.add
|
|
33411
32969
|
local.set $i
|
|
33412
32970
|
else
|
|
33413
|
-
local.get $c
|
|
32971
|
+
local.get $c
|
|
33414
32972
|
i32.const 0
|
|
33415
32973
|
i32.gt_s
|
|
33416
32974
|
if
|
|
33417
32975
|
local.get $arr
|
|
33418
32976
|
local.get $i
|
|
33419
32977
|
call $~lib/typedarray/Float64Array#__get
|
|
33420
|
-
local.set $t|
|
|
32978
|
+
local.set $t|14
|
|
33421
32979
|
local.get $arr
|
|
33422
32980
|
local.get $i
|
|
33423
32981
|
local.get $arr
|
|
@@ -33426,7 +32984,7 @@
|
|
|
33426
32984
|
call $~lib/typedarray/Float64Array#__set
|
|
33427
32985
|
local.get $arr
|
|
33428
32986
|
local.get $gt
|
|
33429
|
-
local.get $t|
|
|
32987
|
+
local.get $t|14
|
|
33430
32988
|
call $~lib/typedarray/Float64Array#__set
|
|
33431
32989
|
local.get $gt
|
|
33432
32990
|
i32.const 1
|
|
@@ -33484,9 +33042,6 @@
|
|
|
33484
33042
|
)
|
|
33485
33043
|
(func $src/sort/sort_f64 (param $data i32) (result i32)
|
|
33486
33044
|
(local $n i32)
|
|
33487
|
-
(local $n|2 i32)
|
|
33488
|
-
(local $v i32)
|
|
33489
|
-
(local $r i32)
|
|
33490
33045
|
local.get $data
|
|
33491
33046
|
call $~lib/typedarray/Float64Array#get:length
|
|
33492
33047
|
local.set $n
|
|
@@ -33500,53 +33055,51 @@
|
|
|
33500
33055
|
i32.const 1
|
|
33501
33056
|
i32.sub
|
|
33502
33057
|
i32.const 2
|
|
33503
|
-
|
|
33504
|
-
|
|
33505
|
-
local.set $n|2
|
|
33506
|
-
local.get $n|2
|
|
33507
|
-
local.set $v
|
|
33508
|
-
i32.const 0
|
|
33509
|
-
local.set $r
|
|
33510
|
-
loop $while-continue|0
|
|
33511
|
-
local.get $v
|
|
33512
|
-
i32.const 1
|
|
33513
|
-
i32.gt_s
|
|
33514
|
-
if
|
|
33515
|
-
local.get $v
|
|
33516
|
-
i32.const 1
|
|
33517
|
-
i32.shr_s
|
|
33518
|
-
local.set $v
|
|
33519
|
-
local.get $r
|
|
33520
|
-
i32.const 1
|
|
33521
|
-
i32.add
|
|
33522
|
-
local.set $r
|
|
33523
|
-
br $while-continue|0
|
|
33524
|
-
end
|
|
33525
|
-
end
|
|
33526
|
-
local.get $r
|
|
33527
|
-
br $src/sort/ilog2|inlined.0
|
|
33528
|
-
end
|
|
33058
|
+
local.get $n
|
|
33059
|
+
call $src/sort/ilog2
|
|
33529
33060
|
i32.mul
|
|
33530
33061
|
call $src/sort/_introsort
|
|
33531
33062
|
end
|
|
33532
33063
|
local.get $data
|
|
33533
33064
|
return
|
|
33534
33065
|
)
|
|
33066
|
+
(func $src/sort/cmpIdxStable (param $data i32) (param $ia i32) (param $ib i32) (result i32)
|
|
33067
|
+
(local $c i32)
|
|
33068
|
+
local.get $data
|
|
33069
|
+
local.get $ia
|
|
33070
|
+
call $~lib/typedarray/Float64Array#__get
|
|
33071
|
+
local.get $data
|
|
33072
|
+
local.get $ib
|
|
33073
|
+
call $~lib/typedarray/Float64Array#__get
|
|
33074
|
+
call $src/sort/cmpNanLast
|
|
33075
|
+
local.set $c
|
|
33076
|
+
local.get $c
|
|
33077
|
+
i32.const 0
|
|
33078
|
+
i32.ne
|
|
33079
|
+
if
|
|
33080
|
+
local.get $c
|
|
33081
|
+
return
|
|
33082
|
+
end
|
|
33083
|
+
local.get $ia
|
|
33084
|
+
local.get $ib
|
|
33085
|
+
i32.lt_s
|
|
33086
|
+
if (result i32)
|
|
33087
|
+
i32.const -1
|
|
33088
|
+
else
|
|
33089
|
+
local.get $ia
|
|
33090
|
+
local.get $ib
|
|
33091
|
+
i32.gt_s
|
|
33092
|
+
if (result i32)
|
|
33093
|
+
i32.const 1
|
|
33094
|
+
else
|
|
33095
|
+
i32.const 0
|
|
33096
|
+
end
|
|
33097
|
+
end
|
|
33098
|
+
return
|
|
33099
|
+
)
|
|
33535
33100
|
(func $src/sort/_siftDownIdx (param $data i32) (param $idx i32) (param $lo i32) (param $start i32) (param $n i32)
|
|
33536
33101
|
(local $root i32)
|
|
33537
33102
|
(local $child i32)
|
|
33538
|
-
(local $data|7 i32)
|
|
33539
|
-
(local $ia i32)
|
|
33540
|
-
(local $ib i32)
|
|
33541
|
-
(local $a f64)
|
|
33542
|
-
(local $b f64)
|
|
33543
|
-
(local $c i32)
|
|
33544
|
-
(local $data|13 i32)
|
|
33545
|
-
(local $ia|14 i32)
|
|
33546
|
-
(local $ib|15 i32)
|
|
33547
|
-
(local $a|16 f64)
|
|
33548
|
-
(local $b|17 f64)
|
|
33549
|
-
(local $c|18 i32)
|
|
33550
33103
|
(local $t i32)
|
|
33551
33104
|
local.get $start
|
|
33552
33105
|
local.set $root
|
|
@@ -33572,207 +33125,43 @@
|
|
|
33572
33125
|
local.get $n
|
|
33573
33126
|
i32.lt_s
|
|
33574
33127
|
if (result i32)
|
|
33575
|
-
block $src/sort/cmpIdxStable|inlined.0 (result i32)
|
|
33576
|
-
local.get $data
|
|
33577
|
-
local.set $data|7
|
|
33578
|
-
local.get $idx
|
|
33579
|
-
local.get $lo
|
|
33580
|
-
local.get $child
|
|
33581
|
-
i32.add
|
|
33582
|
-
call $~lib/typedarray/Int32Array#__get
|
|
33583
|
-
local.set $ia
|
|
33584
|
-
local.get $idx
|
|
33585
|
-
local.get $lo
|
|
33586
|
-
local.get $child
|
|
33587
|
-
i32.add
|
|
33588
|
-
i32.const 1
|
|
33589
|
-
i32.add
|
|
33590
|
-
call $~lib/typedarray/Int32Array#__get
|
|
33591
|
-
local.set $ib
|
|
33592
|
-
block $src/sort/cmpNanLast|inlined.9 (result i32)
|
|
33593
|
-
local.get $data|7
|
|
33594
|
-
local.get $ia
|
|
33595
|
-
call $~lib/typedarray/Float64Array#__get
|
|
33596
|
-
local.set $a
|
|
33597
|
-
local.get $data|7
|
|
33598
|
-
local.get $ib
|
|
33599
|
-
call $~lib/typedarray/Float64Array#__get
|
|
33600
|
-
local.set $b
|
|
33601
|
-
local.get $a
|
|
33602
|
-
local.get $b
|
|
33603
|
-
f64.lt
|
|
33604
|
-
if
|
|
33605
|
-
i32.const -1
|
|
33606
|
-
br $src/sort/cmpNanLast|inlined.9
|
|
33607
|
-
end
|
|
33608
|
-
local.get $a
|
|
33609
|
-
local.get $b
|
|
33610
|
-
f64.gt
|
|
33611
|
-
if
|
|
33612
|
-
i32.const 1
|
|
33613
|
-
br $src/sort/cmpNanLast|inlined.9
|
|
33614
|
-
end
|
|
33615
|
-
local.get $a
|
|
33616
|
-
local.get $b
|
|
33617
|
-
f64.eq
|
|
33618
|
-
if
|
|
33619
|
-
i32.const 0
|
|
33620
|
-
br $src/sort/cmpNanLast|inlined.9
|
|
33621
|
-
end
|
|
33622
|
-
local.get $a
|
|
33623
|
-
local.get $a
|
|
33624
|
-
f64.ne
|
|
33625
|
-
if (result i32)
|
|
33626
|
-
local.get $b
|
|
33627
|
-
local.get $b
|
|
33628
|
-
f64.ne
|
|
33629
|
-
else
|
|
33630
|
-
i32.const 0
|
|
33631
|
-
end
|
|
33632
|
-
if
|
|
33633
|
-
i32.const 0
|
|
33634
|
-
br $src/sort/cmpNanLast|inlined.9
|
|
33635
|
-
end
|
|
33636
|
-
local.get $a
|
|
33637
|
-
local.get $a
|
|
33638
|
-
f64.ne
|
|
33639
|
-
if
|
|
33640
|
-
i32.const 1
|
|
33641
|
-
br $src/sort/cmpNanLast|inlined.9
|
|
33642
|
-
end
|
|
33643
|
-
i32.const -1
|
|
33644
|
-
br $src/sort/cmpNanLast|inlined.9
|
|
33645
|
-
end
|
|
33646
|
-
local.set $c
|
|
33647
|
-
local.get $c
|
|
33648
|
-
i32.const 0
|
|
33649
|
-
i32.ne
|
|
33650
|
-
if
|
|
33651
|
-
local.get $c
|
|
33652
|
-
br $src/sort/cmpIdxStable|inlined.0
|
|
33653
|
-
end
|
|
33654
|
-
local.get $ia
|
|
33655
|
-
local.get $ib
|
|
33656
|
-
i32.lt_s
|
|
33657
|
-
if (result i32)
|
|
33658
|
-
i32.const -1
|
|
33659
|
-
else
|
|
33660
|
-
local.get $ia
|
|
33661
|
-
local.get $ib
|
|
33662
|
-
i32.gt_s
|
|
33663
|
-
if (result i32)
|
|
33664
|
-
i32.const 1
|
|
33665
|
-
else
|
|
33666
|
-
i32.const 0
|
|
33667
|
-
end
|
|
33668
|
-
end
|
|
33669
|
-
br $src/sort/cmpIdxStable|inlined.0
|
|
33670
|
-
end
|
|
33671
|
-
i32.const 0
|
|
33672
|
-
i32.lt_s
|
|
33673
|
-
else
|
|
33674
|
-
i32.const 0
|
|
33675
|
-
end
|
|
33676
|
-
if
|
|
33677
|
-
local.get $child
|
|
33678
|
-
i32.const 1
|
|
33679
|
-
i32.add
|
|
33680
|
-
local.set $child
|
|
33681
|
-
end
|
|
33682
|
-
block $src/sort/cmpIdxStable|inlined.1 (result i32)
|
|
33683
33128
|
local.get $data
|
|
33684
|
-
local.set $data|13
|
|
33685
33129
|
local.get $idx
|
|
33686
33130
|
local.get $lo
|
|
33687
|
-
local.get $
|
|
33131
|
+
local.get $child
|
|
33688
33132
|
i32.add
|
|
33689
33133
|
call $~lib/typedarray/Int32Array#__get
|
|
33690
|
-
local.set $ia|14
|
|
33691
33134
|
local.get $idx
|
|
33692
33135
|
local.get $lo
|
|
33693
33136
|
local.get $child
|
|
33694
33137
|
i32.add
|
|
33138
|
+
i32.const 1
|
|
33139
|
+
i32.add
|
|
33695
33140
|
call $~lib/typedarray/Int32Array#__get
|
|
33696
|
-
|
|
33697
|
-
block $src/sort/cmpNanLast|inlined.10 (result i32)
|
|
33698
|
-
local.get $data|13
|
|
33699
|
-
local.get $ia|14
|
|
33700
|
-
call $~lib/typedarray/Float64Array#__get
|
|
33701
|
-
local.set $a|16
|
|
33702
|
-
local.get $data|13
|
|
33703
|
-
local.get $ib|15
|
|
33704
|
-
call $~lib/typedarray/Float64Array#__get
|
|
33705
|
-
local.set $b|17
|
|
33706
|
-
local.get $a|16
|
|
33707
|
-
local.get $b|17
|
|
33708
|
-
f64.lt
|
|
33709
|
-
if
|
|
33710
|
-
i32.const -1
|
|
33711
|
-
br $src/sort/cmpNanLast|inlined.10
|
|
33712
|
-
end
|
|
33713
|
-
local.get $a|16
|
|
33714
|
-
local.get $b|17
|
|
33715
|
-
f64.gt
|
|
33716
|
-
if
|
|
33717
|
-
i32.const 1
|
|
33718
|
-
br $src/sort/cmpNanLast|inlined.10
|
|
33719
|
-
end
|
|
33720
|
-
local.get $a|16
|
|
33721
|
-
local.get $b|17
|
|
33722
|
-
f64.eq
|
|
33723
|
-
if
|
|
33724
|
-
i32.const 0
|
|
33725
|
-
br $src/sort/cmpNanLast|inlined.10
|
|
33726
|
-
end
|
|
33727
|
-
local.get $a|16
|
|
33728
|
-
local.get $a|16
|
|
33729
|
-
f64.ne
|
|
33730
|
-
if (result i32)
|
|
33731
|
-
local.get $b|17
|
|
33732
|
-
local.get $b|17
|
|
33733
|
-
f64.ne
|
|
33734
|
-
else
|
|
33735
|
-
i32.const 0
|
|
33736
|
-
end
|
|
33737
|
-
if
|
|
33738
|
-
i32.const 0
|
|
33739
|
-
br $src/sort/cmpNanLast|inlined.10
|
|
33740
|
-
end
|
|
33741
|
-
local.get $a|16
|
|
33742
|
-
local.get $a|16
|
|
33743
|
-
f64.ne
|
|
33744
|
-
if
|
|
33745
|
-
i32.const 1
|
|
33746
|
-
br $src/sort/cmpNanLast|inlined.10
|
|
33747
|
-
end
|
|
33748
|
-
i32.const -1
|
|
33749
|
-
br $src/sort/cmpNanLast|inlined.10
|
|
33750
|
-
end
|
|
33751
|
-
local.set $c|18
|
|
33752
|
-
local.get $c|18
|
|
33141
|
+
call $src/sort/cmpIdxStable
|
|
33753
33142
|
i32.const 0
|
|
33754
|
-
i32.ne
|
|
33755
|
-
if
|
|
33756
|
-
local.get $c|18
|
|
33757
|
-
br $src/sort/cmpIdxStable|inlined.1
|
|
33758
|
-
end
|
|
33759
|
-
local.get $ia|14
|
|
33760
|
-
local.get $ib|15
|
|
33761
33143
|
i32.lt_s
|
|
33762
|
-
|
|
33763
|
-
|
|
33764
|
-
|
|
33765
|
-
|
|
33766
|
-
|
|
33767
|
-
|
|
33768
|
-
|
|
33769
|
-
|
|
33770
|
-
else
|
|
33771
|
-
i32.const 0
|
|
33772
|
-
end
|
|
33773
|
-
end
|
|
33774
|
-
br $src/sort/cmpIdxStable|inlined.1
|
|
33144
|
+
else
|
|
33145
|
+
i32.const 0
|
|
33146
|
+
end
|
|
33147
|
+
if
|
|
33148
|
+
local.get $child
|
|
33149
|
+
i32.const 1
|
|
33150
|
+
i32.add
|
|
33151
|
+
local.set $child
|
|
33775
33152
|
end
|
|
33153
|
+
local.get $data
|
|
33154
|
+
local.get $idx
|
|
33155
|
+
local.get $lo
|
|
33156
|
+
local.get $root
|
|
33157
|
+
i32.add
|
|
33158
|
+
call $~lib/typedarray/Int32Array#__get
|
|
33159
|
+
local.get $idx
|
|
33160
|
+
local.get $lo
|
|
33161
|
+
local.get $child
|
|
33162
|
+
i32.add
|
|
33163
|
+
call $~lib/typedarray/Int32Array#__get
|
|
33164
|
+
call $src/sort/cmpIdxStable
|
|
33776
33165
|
i32.const 0
|
|
33777
33166
|
i32.lt_s
|
|
33778
33167
|
if
|
|
@@ -33884,16 +33273,79 @@
|
|
|
33884
33273
|
end
|
|
33885
33274
|
end
|
|
33886
33275
|
)
|
|
33276
|
+
(func $src/sort/_median3Idx (param $data i32) (param $idx i32) (param $a i32) (param $b i32) (param $c i32) (result i32)
|
|
33277
|
+
(local $ia i32)
|
|
33278
|
+
(local $ib i32)
|
|
33279
|
+
(local $ic i32)
|
|
33280
|
+
local.get $idx
|
|
33281
|
+
local.get $a
|
|
33282
|
+
call $~lib/typedarray/Int32Array#__get
|
|
33283
|
+
local.set $ia
|
|
33284
|
+
local.get $idx
|
|
33285
|
+
local.get $b
|
|
33286
|
+
call $~lib/typedarray/Int32Array#__get
|
|
33287
|
+
local.set $ib
|
|
33288
|
+
local.get $idx
|
|
33289
|
+
local.get $c
|
|
33290
|
+
call $~lib/typedarray/Int32Array#__get
|
|
33291
|
+
local.set $ic
|
|
33292
|
+
local.get $data
|
|
33293
|
+
local.get $ia
|
|
33294
|
+
local.get $ib
|
|
33295
|
+
call $src/sort/cmpIdxStable
|
|
33296
|
+
i32.const 0
|
|
33297
|
+
i32.lt_s
|
|
33298
|
+
if
|
|
33299
|
+
local.get $data
|
|
33300
|
+
local.get $ib
|
|
33301
|
+
local.get $ic
|
|
33302
|
+
call $src/sort/cmpIdxStable
|
|
33303
|
+
i32.const 0
|
|
33304
|
+
i32.lt_s
|
|
33305
|
+
if
|
|
33306
|
+
local.get $ib
|
|
33307
|
+
return
|
|
33308
|
+
end
|
|
33309
|
+
local.get $data
|
|
33310
|
+
local.get $ia
|
|
33311
|
+
local.get $ic
|
|
33312
|
+
call $src/sort/cmpIdxStable
|
|
33313
|
+
i32.const 0
|
|
33314
|
+
i32.lt_s
|
|
33315
|
+
if (result i32)
|
|
33316
|
+
local.get $ic
|
|
33317
|
+
else
|
|
33318
|
+
local.get $ia
|
|
33319
|
+
end
|
|
33320
|
+
return
|
|
33321
|
+
end
|
|
33322
|
+
local.get $data
|
|
33323
|
+
local.get $ia
|
|
33324
|
+
local.get $ic
|
|
33325
|
+
call $src/sort/cmpIdxStable
|
|
33326
|
+
i32.const 0
|
|
33327
|
+
i32.lt_s
|
|
33328
|
+
if
|
|
33329
|
+
local.get $ia
|
|
33330
|
+
return
|
|
33331
|
+
end
|
|
33332
|
+
local.get $data
|
|
33333
|
+
local.get $ib
|
|
33334
|
+
local.get $ic
|
|
33335
|
+
call $src/sort/cmpIdxStable
|
|
33336
|
+
i32.const 0
|
|
33337
|
+
i32.lt_s
|
|
33338
|
+
if (result i32)
|
|
33339
|
+
local.get $ic
|
|
33340
|
+
else
|
|
33341
|
+
local.get $ib
|
|
33342
|
+
end
|
|
33343
|
+
return
|
|
33344
|
+
)
|
|
33887
33345
|
(func $src/sort/_insertionSortIdx (param $data i32) (param $idx i32) (param $lo i32) (param $hi i32)
|
|
33888
33346
|
(local $i i32)
|
|
33889
33347
|
(local $key i32)
|
|
33890
33348
|
(local $j i32)
|
|
33891
|
-
(local $data|7 i32)
|
|
33892
|
-
(local $ia i32)
|
|
33893
|
-
(local $ib i32)
|
|
33894
|
-
(local $a f64)
|
|
33895
|
-
(local $b f64)
|
|
33896
|
-
(local $c i32)
|
|
33897
33349
|
local.get $lo
|
|
33898
33350
|
i32.const 1
|
|
33899
33351
|
i32.add
|
|
@@ -33916,94 +33368,12 @@
|
|
|
33916
33368
|
local.get $lo
|
|
33917
33369
|
i32.ge_s
|
|
33918
33370
|
if (result i32)
|
|
33919
|
-
|
|
33920
|
-
|
|
33921
|
-
|
|
33922
|
-
|
|
33923
|
-
|
|
33924
|
-
|
|
33925
|
-
local.set $ia
|
|
33926
|
-
local.get $key
|
|
33927
|
-
local.set $ib
|
|
33928
|
-
block $src/sort/cmpNanLast|inlined.17 (result i32)
|
|
33929
|
-
local.get $data|7
|
|
33930
|
-
local.get $ia
|
|
33931
|
-
call $~lib/typedarray/Float64Array#__get
|
|
33932
|
-
local.set $a
|
|
33933
|
-
local.get $data|7
|
|
33934
|
-
local.get $ib
|
|
33935
|
-
call $~lib/typedarray/Float64Array#__get
|
|
33936
|
-
local.set $b
|
|
33937
|
-
local.get $a
|
|
33938
|
-
local.get $b
|
|
33939
|
-
f64.lt
|
|
33940
|
-
if
|
|
33941
|
-
i32.const -1
|
|
33942
|
-
br $src/sort/cmpNanLast|inlined.17
|
|
33943
|
-
end
|
|
33944
|
-
local.get $a
|
|
33945
|
-
local.get $b
|
|
33946
|
-
f64.gt
|
|
33947
|
-
if
|
|
33948
|
-
i32.const 1
|
|
33949
|
-
br $src/sort/cmpNanLast|inlined.17
|
|
33950
|
-
end
|
|
33951
|
-
local.get $a
|
|
33952
|
-
local.get $b
|
|
33953
|
-
f64.eq
|
|
33954
|
-
if
|
|
33955
|
-
i32.const 0
|
|
33956
|
-
br $src/sort/cmpNanLast|inlined.17
|
|
33957
|
-
end
|
|
33958
|
-
local.get $a
|
|
33959
|
-
local.get $a
|
|
33960
|
-
f64.ne
|
|
33961
|
-
if (result i32)
|
|
33962
|
-
local.get $b
|
|
33963
|
-
local.get $b
|
|
33964
|
-
f64.ne
|
|
33965
|
-
else
|
|
33966
|
-
i32.const 0
|
|
33967
|
-
end
|
|
33968
|
-
if
|
|
33969
|
-
i32.const 0
|
|
33970
|
-
br $src/sort/cmpNanLast|inlined.17
|
|
33971
|
-
end
|
|
33972
|
-
local.get $a
|
|
33973
|
-
local.get $a
|
|
33974
|
-
f64.ne
|
|
33975
|
-
if
|
|
33976
|
-
i32.const 1
|
|
33977
|
-
br $src/sort/cmpNanLast|inlined.17
|
|
33978
|
-
end
|
|
33979
|
-
i32.const -1
|
|
33980
|
-
br $src/sort/cmpNanLast|inlined.17
|
|
33981
|
-
end
|
|
33982
|
-
local.set $c
|
|
33983
|
-
local.get $c
|
|
33984
|
-
i32.const 0
|
|
33985
|
-
i32.ne
|
|
33986
|
-
if
|
|
33987
|
-
local.get $c
|
|
33988
|
-
br $src/sort/cmpIdxStable|inlined.8
|
|
33989
|
-
end
|
|
33990
|
-
local.get $ia
|
|
33991
|
-
local.get $ib
|
|
33992
|
-
i32.lt_s
|
|
33993
|
-
if (result i32)
|
|
33994
|
-
i32.const -1
|
|
33995
|
-
else
|
|
33996
|
-
local.get $ia
|
|
33997
|
-
local.get $ib
|
|
33998
|
-
i32.gt_s
|
|
33999
|
-
if (result i32)
|
|
34000
|
-
i32.const 1
|
|
34001
|
-
else
|
|
34002
|
-
i32.const 0
|
|
34003
|
-
end
|
|
34004
|
-
end
|
|
34005
|
-
br $src/sort/cmpIdxStable|inlined.8
|
|
34006
|
-
end
|
|
33371
|
+
local.get $data
|
|
33372
|
+
local.get $idx
|
|
33373
|
+
local.get $j
|
|
33374
|
+
call $~lib/typedarray/Int32Array#__get
|
|
33375
|
+
local.get $key
|
|
33376
|
+
call $src/sort/cmpIdxStable
|
|
34007
33377
|
i32.const 0
|
|
34008
33378
|
i32.gt_s
|
|
34009
33379
|
else
|
|
@@ -34044,57 +33414,13 @@
|
|
|
34044
33414
|
(local $h i32)
|
|
34045
33415
|
(local $dep i32)
|
|
34046
33416
|
(local $mid i32)
|
|
34047
|
-
(local $data|9 i32)
|
|
34048
|
-
(local $idx|10 i32)
|
|
34049
|
-
(local $a i32)
|
|
34050
|
-
(local $b i32)
|
|
34051
|
-
(local $c i32)
|
|
34052
|
-
(local $ia i32)
|
|
34053
|
-
(local $ib i32)
|
|
34054
|
-
(local $ic i32)
|
|
34055
|
-
(local $data|17 i32)
|
|
34056
|
-
(local $ia|18 i32)
|
|
34057
|
-
(local $ib|19 i32)
|
|
34058
|
-
(local $a|20 f64)
|
|
34059
|
-
(local $b|21 f64)
|
|
34060
|
-
(local $c|22 i32)
|
|
34061
|
-
(local $data|23 i32)
|
|
34062
|
-
(local $ia|24 i32)
|
|
34063
|
-
(local $ib|25 i32)
|
|
34064
|
-
(local $a|26 f64)
|
|
34065
|
-
(local $b|27 f64)
|
|
34066
|
-
(local $c|28 i32)
|
|
34067
|
-
(local $data|29 i32)
|
|
34068
|
-
(local $ia|30 i32)
|
|
34069
|
-
(local $ib|31 i32)
|
|
34070
|
-
(local $a|32 f64)
|
|
34071
|
-
(local $b|33 f64)
|
|
34072
|
-
(local $c|34 i32)
|
|
34073
|
-
(local $data|35 i32)
|
|
34074
|
-
(local $ia|36 i32)
|
|
34075
|
-
(local $ib|37 i32)
|
|
34076
|
-
(local $a|38 f64)
|
|
34077
|
-
(local $b|39 f64)
|
|
34078
|
-
(local $c|40 i32)
|
|
34079
|
-
(local $data|41 i32)
|
|
34080
|
-
(local $ia|42 i32)
|
|
34081
|
-
(local $ib|43 i32)
|
|
34082
|
-
(local $a|44 f64)
|
|
34083
|
-
(local $b|45 f64)
|
|
34084
|
-
(local $c|46 i32)
|
|
34085
33417
|
(local $pivotKey i32)
|
|
34086
33418
|
(local $lt i32)
|
|
34087
33419
|
(local $gt i32)
|
|
34088
33420
|
(local $i i32)
|
|
34089
|
-
(local $
|
|
34090
|
-
(local $ia|52 i32)
|
|
34091
|
-
(local $ib|53 i32)
|
|
34092
|
-
(local $a|54 f64)
|
|
34093
|
-
(local $b|55 f64)
|
|
34094
|
-
(local $c|56 i32)
|
|
34095
|
-
(local $c|57 i32)
|
|
33421
|
+
(local $c i32)
|
|
34096
33422
|
(local $t i32)
|
|
34097
|
-
(local $t|
|
|
33423
|
+
(local $t|15 i32)
|
|
34098
33424
|
local.get $lo
|
|
34099
33425
|
local.set $l
|
|
34100
33426
|
local.get $hi
|
|
@@ -34131,492 +33457,12 @@
|
|
|
34131
33457
|
i32.shr_s
|
|
34132
33458
|
i32.add
|
|
34133
33459
|
local.set $mid
|
|
34134
|
-
|
|
34135
|
-
|
|
34136
|
-
|
|
34137
|
-
|
|
34138
|
-
|
|
34139
|
-
|
|
34140
|
-
local.set $a
|
|
34141
|
-
local.get $mid
|
|
34142
|
-
local.set $b
|
|
34143
|
-
local.get $h
|
|
34144
|
-
local.set $c
|
|
34145
|
-
local.get $idx|10
|
|
34146
|
-
local.get $a
|
|
34147
|
-
call $~lib/typedarray/Int32Array#__get
|
|
34148
|
-
local.set $ia
|
|
34149
|
-
local.get $idx|10
|
|
34150
|
-
local.get $b
|
|
34151
|
-
call $~lib/typedarray/Int32Array#__get
|
|
34152
|
-
local.set $ib
|
|
34153
|
-
local.get $idx|10
|
|
34154
|
-
local.get $c
|
|
34155
|
-
call $~lib/typedarray/Int32Array#__get
|
|
34156
|
-
local.set $ic
|
|
34157
|
-
block $src/sort/cmpIdxStable|inlined.2 (result i32)
|
|
34158
|
-
local.get $data|9
|
|
34159
|
-
local.set $data|17
|
|
34160
|
-
local.get $ia
|
|
34161
|
-
local.set $ia|18
|
|
34162
|
-
local.get $ib
|
|
34163
|
-
local.set $ib|19
|
|
34164
|
-
block $src/sort/cmpNanLast|inlined.11 (result i32)
|
|
34165
|
-
local.get $data|17
|
|
34166
|
-
local.get $ia|18
|
|
34167
|
-
call $~lib/typedarray/Float64Array#__get
|
|
34168
|
-
local.set $a|20
|
|
34169
|
-
local.get $data|17
|
|
34170
|
-
local.get $ib|19
|
|
34171
|
-
call $~lib/typedarray/Float64Array#__get
|
|
34172
|
-
local.set $b|21
|
|
34173
|
-
local.get $a|20
|
|
34174
|
-
local.get $b|21
|
|
34175
|
-
f64.lt
|
|
34176
|
-
if
|
|
34177
|
-
i32.const -1
|
|
34178
|
-
br $src/sort/cmpNanLast|inlined.11
|
|
34179
|
-
end
|
|
34180
|
-
local.get $a|20
|
|
34181
|
-
local.get $b|21
|
|
34182
|
-
f64.gt
|
|
34183
|
-
if
|
|
34184
|
-
i32.const 1
|
|
34185
|
-
br $src/sort/cmpNanLast|inlined.11
|
|
34186
|
-
end
|
|
34187
|
-
local.get $a|20
|
|
34188
|
-
local.get $b|21
|
|
34189
|
-
f64.eq
|
|
34190
|
-
if
|
|
34191
|
-
i32.const 0
|
|
34192
|
-
br $src/sort/cmpNanLast|inlined.11
|
|
34193
|
-
end
|
|
34194
|
-
local.get $a|20
|
|
34195
|
-
local.get $a|20
|
|
34196
|
-
f64.ne
|
|
34197
|
-
if (result i32)
|
|
34198
|
-
local.get $b|21
|
|
34199
|
-
local.get $b|21
|
|
34200
|
-
f64.ne
|
|
34201
|
-
else
|
|
34202
|
-
i32.const 0
|
|
34203
|
-
end
|
|
34204
|
-
if
|
|
34205
|
-
i32.const 0
|
|
34206
|
-
br $src/sort/cmpNanLast|inlined.11
|
|
34207
|
-
end
|
|
34208
|
-
local.get $a|20
|
|
34209
|
-
local.get $a|20
|
|
34210
|
-
f64.ne
|
|
34211
|
-
if
|
|
34212
|
-
i32.const 1
|
|
34213
|
-
br $src/sort/cmpNanLast|inlined.11
|
|
34214
|
-
end
|
|
34215
|
-
i32.const -1
|
|
34216
|
-
br $src/sort/cmpNanLast|inlined.11
|
|
34217
|
-
end
|
|
34218
|
-
local.set $c|22
|
|
34219
|
-
local.get $c|22
|
|
34220
|
-
i32.const 0
|
|
34221
|
-
i32.ne
|
|
34222
|
-
if
|
|
34223
|
-
local.get $c|22
|
|
34224
|
-
br $src/sort/cmpIdxStable|inlined.2
|
|
34225
|
-
end
|
|
34226
|
-
local.get $ia|18
|
|
34227
|
-
local.get $ib|19
|
|
34228
|
-
i32.lt_s
|
|
34229
|
-
if (result i32)
|
|
34230
|
-
i32.const -1
|
|
34231
|
-
else
|
|
34232
|
-
local.get $ia|18
|
|
34233
|
-
local.get $ib|19
|
|
34234
|
-
i32.gt_s
|
|
34235
|
-
if (result i32)
|
|
34236
|
-
i32.const 1
|
|
34237
|
-
else
|
|
34238
|
-
i32.const 0
|
|
34239
|
-
end
|
|
34240
|
-
end
|
|
34241
|
-
br $src/sort/cmpIdxStable|inlined.2
|
|
34242
|
-
end
|
|
34243
|
-
i32.const 0
|
|
34244
|
-
i32.lt_s
|
|
34245
|
-
if
|
|
34246
|
-
block $src/sort/cmpIdxStable|inlined.3 (result i32)
|
|
34247
|
-
local.get $data|9
|
|
34248
|
-
local.set $data|23
|
|
34249
|
-
local.get $ib
|
|
34250
|
-
local.set $ia|24
|
|
34251
|
-
local.get $ic
|
|
34252
|
-
local.set $ib|25
|
|
34253
|
-
block $src/sort/cmpNanLast|inlined.12 (result i32)
|
|
34254
|
-
local.get $data|23
|
|
34255
|
-
local.get $ia|24
|
|
34256
|
-
call $~lib/typedarray/Float64Array#__get
|
|
34257
|
-
local.set $a|26
|
|
34258
|
-
local.get $data|23
|
|
34259
|
-
local.get $ib|25
|
|
34260
|
-
call $~lib/typedarray/Float64Array#__get
|
|
34261
|
-
local.set $b|27
|
|
34262
|
-
local.get $a|26
|
|
34263
|
-
local.get $b|27
|
|
34264
|
-
f64.lt
|
|
34265
|
-
if
|
|
34266
|
-
i32.const -1
|
|
34267
|
-
br $src/sort/cmpNanLast|inlined.12
|
|
34268
|
-
end
|
|
34269
|
-
local.get $a|26
|
|
34270
|
-
local.get $b|27
|
|
34271
|
-
f64.gt
|
|
34272
|
-
if
|
|
34273
|
-
i32.const 1
|
|
34274
|
-
br $src/sort/cmpNanLast|inlined.12
|
|
34275
|
-
end
|
|
34276
|
-
local.get $a|26
|
|
34277
|
-
local.get $b|27
|
|
34278
|
-
f64.eq
|
|
34279
|
-
if
|
|
34280
|
-
i32.const 0
|
|
34281
|
-
br $src/sort/cmpNanLast|inlined.12
|
|
34282
|
-
end
|
|
34283
|
-
local.get $a|26
|
|
34284
|
-
local.get $a|26
|
|
34285
|
-
f64.ne
|
|
34286
|
-
if (result i32)
|
|
34287
|
-
local.get $b|27
|
|
34288
|
-
local.get $b|27
|
|
34289
|
-
f64.ne
|
|
34290
|
-
else
|
|
34291
|
-
i32.const 0
|
|
34292
|
-
end
|
|
34293
|
-
if
|
|
34294
|
-
i32.const 0
|
|
34295
|
-
br $src/sort/cmpNanLast|inlined.12
|
|
34296
|
-
end
|
|
34297
|
-
local.get $a|26
|
|
34298
|
-
local.get $a|26
|
|
34299
|
-
f64.ne
|
|
34300
|
-
if
|
|
34301
|
-
i32.const 1
|
|
34302
|
-
br $src/sort/cmpNanLast|inlined.12
|
|
34303
|
-
end
|
|
34304
|
-
i32.const -1
|
|
34305
|
-
br $src/sort/cmpNanLast|inlined.12
|
|
34306
|
-
end
|
|
34307
|
-
local.set $c|28
|
|
34308
|
-
local.get $c|28
|
|
34309
|
-
i32.const 0
|
|
34310
|
-
i32.ne
|
|
34311
|
-
if
|
|
34312
|
-
local.get $c|28
|
|
34313
|
-
br $src/sort/cmpIdxStable|inlined.3
|
|
34314
|
-
end
|
|
34315
|
-
local.get $ia|24
|
|
34316
|
-
local.get $ib|25
|
|
34317
|
-
i32.lt_s
|
|
34318
|
-
if (result i32)
|
|
34319
|
-
i32.const -1
|
|
34320
|
-
else
|
|
34321
|
-
local.get $ia|24
|
|
34322
|
-
local.get $ib|25
|
|
34323
|
-
i32.gt_s
|
|
34324
|
-
if (result i32)
|
|
34325
|
-
i32.const 1
|
|
34326
|
-
else
|
|
34327
|
-
i32.const 0
|
|
34328
|
-
end
|
|
34329
|
-
end
|
|
34330
|
-
br $src/sort/cmpIdxStable|inlined.3
|
|
34331
|
-
end
|
|
34332
|
-
i32.const 0
|
|
34333
|
-
i32.lt_s
|
|
34334
|
-
if
|
|
34335
|
-
local.get $ib
|
|
34336
|
-
br $src/sort/_median3Idx|inlined.0
|
|
34337
|
-
end
|
|
34338
|
-
block $src/sort/cmpIdxStable|inlined.4 (result i32)
|
|
34339
|
-
local.get $data|9
|
|
34340
|
-
local.set $data|29
|
|
34341
|
-
local.get $ia
|
|
34342
|
-
local.set $ia|30
|
|
34343
|
-
local.get $ic
|
|
34344
|
-
local.set $ib|31
|
|
34345
|
-
block $src/sort/cmpNanLast|inlined.13 (result i32)
|
|
34346
|
-
local.get $data|29
|
|
34347
|
-
local.get $ia|30
|
|
34348
|
-
call $~lib/typedarray/Float64Array#__get
|
|
34349
|
-
local.set $a|32
|
|
34350
|
-
local.get $data|29
|
|
34351
|
-
local.get $ib|31
|
|
34352
|
-
call $~lib/typedarray/Float64Array#__get
|
|
34353
|
-
local.set $b|33
|
|
34354
|
-
local.get $a|32
|
|
34355
|
-
local.get $b|33
|
|
34356
|
-
f64.lt
|
|
34357
|
-
if
|
|
34358
|
-
i32.const -1
|
|
34359
|
-
br $src/sort/cmpNanLast|inlined.13
|
|
34360
|
-
end
|
|
34361
|
-
local.get $a|32
|
|
34362
|
-
local.get $b|33
|
|
34363
|
-
f64.gt
|
|
34364
|
-
if
|
|
34365
|
-
i32.const 1
|
|
34366
|
-
br $src/sort/cmpNanLast|inlined.13
|
|
34367
|
-
end
|
|
34368
|
-
local.get $a|32
|
|
34369
|
-
local.get $b|33
|
|
34370
|
-
f64.eq
|
|
34371
|
-
if
|
|
34372
|
-
i32.const 0
|
|
34373
|
-
br $src/sort/cmpNanLast|inlined.13
|
|
34374
|
-
end
|
|
34375
|
-
local.get $a|32
|
|
34376
|
-
local.get $a|32
|
|
34377
|
-
f64.ne
|
|
34378
|
-
if (result i32)
|
|
34379
|
-
local.get $b|33
|
|
34380
|
-
local.get $b|33
|
|
34381
|
-
f64.ne
|
|
34382
|
-
else
|
|
34383
|
-
i32.const 0
|
|
34384
|
-
end
|
|
34385
|
-
if
|
|
34386
|
-
i32.const 0
|
|
34387
|
-
br $src/sort/cmpNanLast|inlined.13
|
|
34388
|
-
end
|
|
34389
|
-
local.get $a|32
|
|
34390
|
-
local.get $a|32
|
|
34391
|
-
f64.ne
|
|
34392
|
-
if
|
|
34393
|
-
i32.const 1
|
|
34394
|
-
br $src/sort/cmpNanLast|inlined.13
|
|
34395
|
-
end
|
|
34396
|
-
i32.const -1
|
|
34397
|
-
br $src/sort/cmpNanLast|inlined.13
|
|
34398
|
-
end
|
|
34399
|
-
local.set $c|34
|
|
34400
|
-
local.get $c|34
|
|
34401
|
-
i32.const 0
|
|
34402
|
-
i32.ne
|
|
34403
|
-
if
|
|
34404
|
-
local.get $c|34
|
|
34405
|
-
br $src/sort/cmpIdxStable|inlined.4
|
|
34406
|
-
end
|
|
34407
|
-
local.get $ia|30
|
|
34408
|
-
local.get $ib|31
|
|
34409
|
-
i32.lt_s
|
|
34410
|
-
if (result i32)
|
|
34411
|
-
i32.const -1
|
|
34412
|
-
else
|
|
34413
|
-
local.get $ia|30
|
|
34414
|
-
local.get $ib|31
|
|
34415
|
-
i32.gt_s
|
|
34416
|
-
if (result i32)
|
|
34417
|
-
i32.const 1
|
|
34418
|
-
else
|
|
34419
|
-
i32.const 0
|
|
34420
|
-
end
|
|
34421
|
-
end
|
|
34422
|
-
br $src/sort/cmpIdxStable|inlined.4
|
|
34423
|
-
end
|
|
34424
|
-
i32.const 0
|
|
34425
|
-
i32.lt_s
|
|
34426
|
-
if (result i32)
|
|
34427
|
-
local.get $ic
|
|
34428
|
-
else
|
|
34429
|
-
local.get $ia
|
|
34430
|
-
end
|
|
34431
|
-
br $src/sort/_median3Idx|inlined.0
|
|
34432
|
-
end
|
|
34433
|
-
block $src/sort/cmpIdxStable|inlined.5 (result i32)
|
|
34434
|
-
local.get $data|9
|
|
34435
|
-
local.set $data|35
|
|
34436
|
-
local.get $ia
|
|
34437
|
-
local.set $ia|36
|
|
34438
|
-
local.get $ic
|
|
34439
|
-
local.set $ib|37
|
|
34440
|
-
block $src/sort/cmpNanLast|inlined.14 (result i32)
|
|
34441
|
-
local.get $data|35
|
|
34442
|
-
local.get $ia|36
|
|
34443
|
-
call $~lib/typedarray/Float64Array#__get
|
|
34444
|
-
local.set $a|38
|
|
34445
|
-
local.get $data|35
|
|
34446
|
-
local.get $ib|37
|
|
34447
|
-
call $~lib/typedarray/Float64Array#__get
|
|
34448
|
-
local.set $b|39
|
|
34449
|
-
local.get $a|38
|
|
34450
|
-
local.get $b|39
|
|
34451
|
-
f64.lt
|
|
34452
|
-
if
|
|
34453
|
-
i32.const -1
|
|
34454
|
-
br $src/sort/cmpNanLast|inlined.14
|
|
34455
|
-
end
|
|
34456
|
-
local.get $a|38
|
|
34457
|
-
local.get $b|39
|
|
34458
|
-
f64.gt
|
|
34459
|
-
if
|
|
34460
|
-
i32.const 1
|
|
34461
|
-
br $src/sort/cmpNanLast|inlined.14
|
|
34462
|
-
end
|
|
34463
|
-
local.get $a|38
|
|
34464
|
-
local.get $b|39
|
|
34465
|
-
f64.eq
|
|
34466
|
-
if
|
|
34467
|
-
i32.const 0
|
|
34468
|
-
br $src/sort/cmpNanLast|inlined.14
|
|
34469
|
-
end
|
|
34470
|
-
local.get $a|38
|
|
34471
|
-
local.get $a|38
|
|
34472
|
-
f64.ne
|
|
34473
|
-
if (result i32)
|
|
34474
|
-
local.get $b|39
|
|
34475
|
-
local.get $b|39
|
|
34476
|
-
f64.ne
|
|
34477
|
-
else
|
|
34478
|
-
i32.const 0
|
|
34479
|
-
end
|
|
34480
|
-
if
|
|
34481
|
-
i32.const 0
|
|
34482
|
-
br $src/sort/cmpNanLast|inlined.14
|
|
34483
|
-
end
|
|
34484
|
-
local.get $a|38
|
|
34485
|
-
local.get $a|38
|
|
34486
|
-
f64.ne
|
|
34487
|
-
if
|
|
34488
|
-
i32.const 1
|
|
34489
|
-
br $src/sort/cmpNanLast|inlined.14
|
|
34490
|
-
end
|
|
34491
|
-
i32.const -1
|
|
34492
|
-
br $src/sort/cmpNanLast|inlined.14
|
|
34493
|
-
end
|
|
34494
|
-
local.set $c|40
|
|
34495
|
-
local.get $c|40
|
|
34496
|
-
i32.const 0
|
|
34497
|
-
i32.ne
|
|
34498
|
-
if
|
|
34499
|
-
local.get $c|40
|
|
34500
|
-
br $src/sort/cmpIdxStable|inlined.5
|
|
34501
|
-
end
|
|
34502
|
-
local.get $ia|36
|
|
34503
|
-
local.get $ib|37
|
|
34504
|
-
i32.lt_s
|
|
34505
|
-
if (result i32)
|
|
34506
|
-
i32.const -1
|
|
34507
|
-
else
|
|
34508
|
-
local.get $ia|36
|
|
34509
|
-
local.get $ib|37
|
|
34510
|
-
i32.gt_s
|
|
34511
|
-
if (result i32)
|
|
34512
|
-
i32.const 1
|
|
34513
|
-
else
|
|
34514
|
-
i32.const 0
|
|
34515
|
-
end
|
|
34516
|
-
end
|
|
34517
|
-
br $src/sort/cmpIdxStable|inlined.5
|
|
34518
|
-
end
|
|
34519
|
-
i32.const 0
|
|
34520
|
-
i32.lt_s
|
|
34521
|
-
if
|
|
34522
|
-
local.get $ia
|
|
34523
|
-
br $src/sort/_median3Idx|inlined.0
|
|
34524
|
-
end
|
|
34525
|
-
block $src/sort/cmpIdxStable|inlined.6 (result i32)
|
|
34526
|
-
local.get $data|9
|
|
34527
|
-
local.set $data|41
|
|
34528
|
-
local.get $ib
|
|
34529
|
-
local.set $ia|42
|
|
34530
|
-
local.get $ic
|
|
34531
|
-
local.set $ib|43
|
|
34532
|
-
block $src/sort/cmpNanLast|inlined.15 (result i32)
|
|
34533
|
-
local.get $data|41
|
|
34534
|
-
local.get $ia|42
|
|
34535
|
-
call $~lib/typedarray/Float64Array#__get
|
|
34536
|
-
local.set $a|44
|
|
34537
|
-
local.get $data|41
|
|
34538
|
-
local.get $ib|43
|
|
34539
|
-
call $~lib/typedarray/Float64Array#__get
|
|
34540
|
-
local.set $b|45
|
|
34541
|
-
local.get $a|44
|
|
34542
|
-
local.get $b|45
|
|
34543
|
-
f64.lt
|
|
34544
|
-
if
|
|
34545
|
-
i32.const -1
|
|
34546
|
-
br $src/sort/cmpNanLast|inlined.15
|
|
34547
|
-
end
|
|
34548
|
-
local.get $a|44
|
|
34549
|
-
local.get $b|45
|
|
34550
|
-
f64.gt
|
|
34551
|
-
if
|
|
34552
|
-
i32.const 1
|
|
34553
|
-
br $src/sort/cmpNanLast|inlined.15
|
|
34554
|
-
end
|
|
34555
|
-
local.get $a|44
|
|
34556
|
-
local.get $b|45
|
|
34557
|
-
f64.eq
|
|
34558
|
-
if
|
|
34559
|
-
i32.const 0
|
|
34560
|
-
br $src/sort/cmpNanLast|inlined.15
|
|
34561
|
-
end
|
|
34562
|
-
local.get $a|44
|
|
34563
|
-
local.get $a|44
|
|
34564
|
-
f64.ne
|
|
34565
|
-
if (result i32)
|
|
34566
|
-
local.get $b|45
|
|
34567
|
-
local.get $b|45
|
|
34568
|
-
f64.ne
|
|
34569
|
-
else
|
|
34570
|
-
i32.const 0
|
|
34571
|
-
end
|
|
34572
|
-
if
|
|
34573
|
-
i32.const 0
|
|
34574
|
-
br $src/sort/cmpNanLast|inlined.15
|
|
34575
|
-
end
|
|
34576
|
-
local.get $a|44
|
|
34577
|
-
local.get $a|44
|
|
34578
|
-
f64.ne
|
|
34579
|
-
if
|
|
34580
|
-
i32.const 1
|
|
34581
|
-
br $src/sort/cmpNanLast|inlined.15
|
|
34582
|
-
end
|
|
34583
|
-
i32.const -1
|
|
34584
|
-
br $src/sort/cmpNanLast|inlined.15
|
|
34585
|
-
end
|
|
34586
|
-
local.set $c|46
|
|
34587
|
-
local.get $c|46
|
|
34588
|
-
i32.const 0
|
|
34589
|
-
i32.ne
|
|
34590
|
-
if
|
|
34591
|
-
local.get $c|46
|
|
34592
|
-
br $src/sort/cmpIdxStable|inlined.6
|
|
34593
|
-
end
|
|
34594
|
-
local.get $ia|42
|
|
34595
|
-
local.get $ib|43
|
|
34596
|
-
i32.lt_s
|
|
34597
|
-
if (result i32)
|
|
34598
|
-
i32.const -1
|
|
34599
|
-
else
|
|
34600
|
-
local.get $ia|42
|
|
34601
|
-
local.get $ib|43
|
|
34602
|
-
i32.gt_s
|
|
34603
|
-
if (result i32)
|
|
34604
|
-
i32.const 1
|
|
34605
|
-
else
|
|
34606
|
-
i32.const 0
|
|
34607
|
-
end
|
|
34608
|
-
end
|
|
34609
|
-
br $src/sort/cmpIdxStable|inlined.6
|
|
34610
|
-
end
|
|
34611
|
-
i32.const 0
|
|
34612
|
-
i32.lt_s
|
|
34613
|
-
if (result i32)
|
|
34614
|
-
local.get $ic
|
|
34615
|
-
else
|
|
34616
|
-
local.get $ib
|
|
34617
|
-
end
|
|
34618
|
-
br $src/sort/_median3Idx|inlined.0
|
|
34619
|
-
end
|
|
33460
|
+
local.get $data
|
|
33461
|
+
local.get $idx
|
|
33462
|
+
local.get $l
|
|
33463
|
+
local.get $mid
|
|
33464
|
+
local.get $h
|
|
33465
|
+
call $src/sort/_median3Idx
|
|
34620
33466
|
local.set $pivotKey
|
|
34621
33467
|
local.get $l
|
|
34622
33468
|
local.set $lt
|
|
@@ -34629,96 +33475,14 @@
|
|
|
34629
33475
|
local.get $gt
|
|
34630
33476
|
i32.le_s
|
|
34631
33477
|
if
|
|
34632
|
-
|
|
34633
|
-
|
|
34634
|
-
|
|
34635
|
-
|
|
34636
|
-
|
|
34637
|
-
|
|
34638
|
-
|
|
34639
|
-
|
|
34640
|
-
local.set $ib|53
|
|
34641
|
-
block $src/sort/cmpNanLast|inlined.16 (result i32)
|
|
34642
|
-
local.get $data|51
|
|
34643
|
-
local.get $ia|52
|
|
34644
|
-
call $~lib/typedarray/Float64Array#__get
|
|
34645
|
-
local.set $a|54
|
|
34646
|
-
local.get $data|51
|
|
34647
|
-
local.get $ib|53
|
|
34648
|
-
call $~lib/typedarray/Float64Array#__get
|
|
34649
|
-
local.set $b|55
|
|
34650
|
-
local.get $a|54
|
|
34651
|
-
local.get $b|55
|
|
34652
|
-
f64.lt
|
|
34653
|
-
if
|
|
34654
|
-
i32.const -1
|
|
34655
|
-
br $src/sort/cmpNanLast|inlined.16
|
|
34656
|
-
end
|
|
34657
|
-
local.get $a|54
|
|
34658
|
-
local.get $b|55
|
|
34659
|
-
f64.gt
|
|
34660
|
-
if
|
|
34661
|
-
i32.const 1
|
|
34662
|
-
br $src/sort/cmpNanLast|inlined.16
|
|
34663
|
-
end
|
|
34664
|
-
local.get $a|54
|
|
34665
|
-
local.get $b|55
|
|
34666
|
-
f64.eq
|
|
34667
|
-
if
|
|
34668
|
-
i32.const 0
|
|
34669
|
-
br $src/sort/cmpNanLast|inlined.16
|
|
34670
|
-
end
|
|
34671
|
-
local.get $a|54
|
|
34672
|
-
local.get $a|54
|
|
34673
|
-
f64.ne
|
|
34674
|
-
if (result i32)
|
|
34675
|
-
local.get $b|55
|
|
34676
|
-
local.get $b|55
|
|
34677
|
-
f64.ne
|
|
34678
|
-
else
|
|
34679
|
-
i32.const 0
|
|
34680
|
-
end
|
|
34681
|
-
if
|
|
34682
|
-
i32.const 0
|
|
34683
|
-
br $src/sort/cmpNanLast|inlined.16
|
|
34684
|
-
end
|
|
34685
|
-
local.get $a|54
|
|
34686
|
-
local.get $a|54
|
|
34687
|
-
f64.ne
|
|
34688
|
-
if
|
|
34689
|
-
i32.const 1
|
|
34690
|
-
br $src/sort/cmpNanLast|inlined.16
|
|
34691
|
-
end
|
|
34692
|
-
i32.const -1
|
|
34693
|
-
br $src/sort/cmpNanLast|inlined.16
|
|
34694
|
-
end
|
|
34695
|
-
local.set $c|56
|
|
34696
|
-
local.get $c|56
|
|
34697
|
-
i32.const 0
|
|
34698
|
-
i32.ne
|
|
34699
|
-
if
|
|
34700
|
-
local.get $c|56
|
|
34701
|
-
br $src/sort/cmpIdxStable|inlined.7
|
|
34702
|
-
end
|
|
34703
|
-
local.get $ia|52
|
|
34704
|
-
local.get $ib|53
|
|
34705
|
-
i32.lt_s
|
|
34706
|
-
if (result i32)
|
|
34707
|
-
i32.const -1
|
|
34708
|
-
else
|
|
34709
|
-
local.get $ia|52
|
|
34710
|
-
local.get $ib|53
|
|
34711
|
-
i32.gt_s
|
|
34712
|
-
if (result i32)
|
|
34713
|
-
i32.const 1
|
|
34714
|
-
else
|
|
34715
|
-
i32.const 0
|
|
34716
|
-
end
|
|
34717
|
-
end
|
|
34718
|
-
br $src/sort/cmpIdxStable|inlined.7
|
|
34719
|
-
end
|
|
34720
|
-
local.set $c|57
|
|
34721
|
-
local.get $c|57
|
|
33478
|
+
local.get $data
|
|
33479
|
+
local.get $idx
|
|
33480
|
+
local.get $i
|
|
33481
|
+
call $~lib/typedarray/Int32Array#__get
|
|
33482
|
+
local.get $pivotKey
|
|
33483
|
+
call $src/sort/cmpIdxStable
|
|
33484
|
+
local.set $c
|
|
33485
|
+
local.get $c
|
|
34722
33486
|
i32.const 0
|
|
34723
33487
|
i32.lt_s
|
|
34724
33488
|
if
|
|
@@ -34745,14 +33509,14 @@
|
|
|
34745
33509
|
i32.add
|
|
34746
33510
|
local.set $i
|
|
34747
33511
|
else
|
|
34748
|
-
local.get $c
|
|
33512
|
+
local.get $c
|
|
34749
33513
|
i32.const 0
|
|
34750
33514
|
i32.gt_s
|
|
34751
33515
|
if
|
|
34752
33516
|
local.get $idx
|
|
34753
33517
|
local.get $i
|
|
34754
33518
|
call $~lib/typedarray/Int32Array#__get
|
|
34755
|
-
local.set $t|
|
|
33519
|
+
local.set $t|15
|
|
34756
33520
|
local.get $idx
|
|
34757
33521
|
local.get $i
|
|
34758
33522
|
local.get $idx
|
|
@@ -34761,7 +33525,7 @@
|
|
|
34761
33525
|
call $~lib/typedarray/Int32Array#__set
|
|
34762
33526
|
local.get $idx
|
|
34763
33527
|
local.get $gt
|
|
34764
|
-
local.get $t|
|
|
33528
|
+
local.get $t|15
|
|
34765
33529
|
call $~lib/typedarray/Int32Array#__set
|
|
34766
33530
|
local.get $gt
|
|
34767
33531
|
i32.const 1
|
|
@@ -34824,9 +33588,6 @@
|
|
|
34824
33588
|
(local $n i32)
|
|
34825
33589
|
(local $idx i32)
|
|
34826
33590
|
(local $i i32)
|
|
34827
|
-
(local $n|4 i32)
|
|
34828
|
-
(local $v i32)
|
|
34829
|
-
(local $r i32)
|
|
34830
33591
|
local.get $data
|
|
34831
33592
|
call $~lib/typedarray/Float64Array#get:length
|
|
34832
33593
|
local.set $n
|
|
@@ -34863,32 +33624,8 @@
|
|
|
34863
33624
|
i32.const 1
|
|
34864
33625
|
i32.sub
|
|
34865
33626
|
i32.const 2
|
|
34866
|
-
|
|
34867
|
-
|
|
34868
|
-
local.set $n|4
|
|
34869
|
-
local.get $n|4
|
|
34870
|
-
local.set $v
|
|
34871
|
-
i32.const 0
|
|
34872
|
-
local.set $r
|
|
34873
|
-
loop $while-continue|1
|
|
34874
|
-
local.get $v
|
|
34875
|
-
i32.const 1
|
|
34876
|
-
i32.gt_s
|
|
34877
|
-
if
|
|
34878
|
-
local.get $v
|
|
34879
|
-
i32.const 1
|
|
34880
|
-
i32.shr_s
|
|
34881
|
-
local.set $v
|
|
34882
|
-
local.get $r
|
|
34883
|
-
i32.const 1
|
|
34884
|
-
i32.add
|
|
34885
|
-
local.set $r
|
|
34886
|
-
br $while-continue|1
|
|
34887
|
-
end
|
|
34888
|
-
end
|
|
34889
|
-
local.get $r
|
|
34890
|
-
br $src/sort/ilog2|inlined.1
|
|
34891
|
-
end
|
|
33627
|
+
local.get $n
|
|
33628
|
+
call $src/sort/ilog2
|
|
34892
33629
|
i32.mul
|
|
34893
33630
|
call $src/sort/_introsortIdx
|
|
34894
33631
|
end
|
|
@@ -35096,28 +33833,37 @@
|
|
|
35096
33833
|
return
|
|
35097
33834
|
)
|
|
35098
33835
|
(func $src/ops/complex-array/complex_array_add (param $a i32) (param $b i32) (param $result i32)
|
|
35099
|
-
(local $3 i32)
|
|
35100
|
-
(local $4 i32)
|
|
35101
|
-
(local $5 i32)
|
|
33836
|
+
(local $a|3 i32)
|
|
33837
|
+
(local $b|4 i32)
|
|
33838
|
+
(local $result|5 i32)
|
|
35102
33839
|
(local $6 i32)
|
|
33840
|
+
(local $7 i32)
|
|
33841
|
+
(local $8 i32)
|
|
33842
|
+
(local $9 i32)
|
|
35103
33843
|
(local $len i32)
|
|
35104
33844
|
(local $i i32)
|
|
35105
33845
|
local.get $a
|
|
35106
|
-
|
|
35107
|
-
local.tee $3
|
|
33846
|
+
local.set $a|3
|
|
35108
33847
|
local.get $b
|
|
35109
|
-
|
|
35110
|
-
local.tee $4
|
|
35111
|
-
local.get $3
|
|
35112
|
-
local.get $4
|
|
35113
|
-
i32.lt_s
|
|
35114
|
-
select
|
|
35115
|
-
local.tee $5
|
|
33848
|
+
local.set $b|4
|
|
35116
33849
|
local.get $result
|
|
33850
|
+
local.set $result|5
|
|
33851
|
+
local.get $a|3
|
|
35117
33852
|
call $~lib/typedarray/Float64Array#get:length
|
|
35118
33853
|
local.tee $6
|
|
35119
|
-
local.get $
|
|
33854
|
+
local.get $b|4
|
|
33855
|
+
call $~lib/typedarray/Float64Array#get:length
|
|
33856
|
+
local.tee $7
|
|
35120
33857
|
local.get $6
|
|
33858
|
+
local.get $7
|
|
33859
|
+
i32.lt_s
|
|
33860
|
+
select
|
|
33861
|
+
local.tee $8
|
|
33862
|
+
local.get $result|5
|
|
33863
|
+
call $~lib/typedarray/Float64Array#get:length
|
|
33864
|
+
local.tee $9
|
|
33865
|
+
local.get $8
|
|
33866
|
+
local.get $9
|
|
35121
33867
|
i32.lt_s
|
|
35122
33868
|
select
|
|
35123
33869
|
local.set $len
|
|
@@ -35128,12 +33874,12 @@
|
|
|
35128
33874
|
local.get $len
|
|
35129
33875
|
i32.lt_s
|
|
35130
33876
|
if
|
|
35131
|
-
local.get $result
|
|
33877
|
+
local.get $result|5
|
|
35132
33878
|
local.get $i
|
|
35133
|
-
local.get $a
|
|
33879
|
+
local.get $a|3
|
|
35134
33880
|
local.get $i
|
|
35135
33881
|
call $~lib/typedarray/Float64Array#__uget
|
|
35136
|
-
local.get $b
|
|
33882
|
+
local.get $b|4
|
|
35137
33883
|
local.get $i
|
|
35138
33884
|
call $~lib/typedarray/Float64Array#__uget
|
|
35139
33885
|
f64.add
|
|
@@ -35147,28 +33893,37 @@
|
|
|
35147
33893
|
end
|
|
35148
33894
|
)
|
|
35149
33895
|
(func $src/ops/complex-array/complex_array_sub (param $a i32) (param $b i32) (param $result i32)
|
|
35150
|
-
(local $3 i32)
|
|
35151
|
-
(local $4 i32)
|
|
35152
|
-
(local $5 i32)
|
|
33896
|
+
(local $a|3 i32)
|
|
33897
|
+
(local $b|4 i32)
|
|
33898
|
+
(local $result|5 i32)
|
|
35153
33899
|
(local $6 i32)
|
|
33900
|
+
(local $7 i32)
|
|
33901
|
+
(local $8 i32)
|
|
33902
|
+
(local $9 i32)
|
|
35154
33903
|
(local $len i32)
|
|
35155
33904
|
(local $i i32)
|
|
35156
33905
|
local.get $a
|
|
35157
|
-
|
|
35158
|
-
local.tee $3
|
|
33906
|
+
local.set $a|3
|
|
35159
33907
|
local.get $b
|
|
35160
|
-
|
|
35161
|
-
local.tee $4
|
|
35162
|
-
local.get $3
|
|
35163
|
-
local.get $4
|
|
35164
|
-
i32.lt_s
|
|
35165
|
-
select
|
|
35166
|
-
local.tee $5
|
|
33908
|
+
local.set $b|4
|
|
35167
33909
|
local.get $result
|
|
33910
|
+
local.set $result|5
|
|
33911
|
+
local.get $a|3
|
|
35168
33912
|
call $~lib/typedarray/Float64Array#get:length
|
|
35169
33913
|
local.tee $6
|
|
35170
|
-
local.get $
|
|
33914
|
+
local.get $b|4
|
|
33915
|
+
call $~lib/typedarray/Float64Array#get:length
|
|
33916
|
+
local.tee $7
|
|
35171
33917
|
local.get $6
|
|
33918
|
+
local.get $7
|
|
33919
|
+
i32.lt_s
|
|
33920
|
+
select
|
|
33921
|
+
local.tee $8
|
|
33922
|
+
local.get $result|5
|
|
33923
|
+
call $~lib/typedarray/Float64Array#get:length
|
|
33924
|
+
local.tee $9
|
|
33925
|
+
local.get $8
|
|
33926
|
+
local.get $9
|
|
35172
33927
|
i32.lt_s
|
|
35173
33928
|
select
|
|
35174
33929
|
local.set $len
|
|
@@ -35179,12 +33934,12 @@
|
|
|
35179
33934
|
local.get $len
|
|
35180
33935
|
i32.lt_s
|
|
35181
33936
|
if
|
|
35182
|
-
local.get $result
|
|
33937
|
+
local.get $result|5
|
|
35183
33938
|
local.get $i
|
|
35184
|
-
local.get $a
|
|
33939
|
+
local.get $a|3
|
|
35185
33940
|
local.get $i
|
|
35186
33941
|
call $~lib/typedarray/Float64Array#__uget
|
|
35187
|
-
local.get $b
|
|
33942
|
+
local.get $b|4
|
|
35188
33943
|
local.get $i
|
|
35189
33944
|
call $~lib/typedarray/Float64Array#__uget
|
|
35190
33945
|
f64.sub
|