@danielsimonjr/mathts-wasm 0.4.0 → 0.5.0
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 +70 -0
- package/build/mathts-debug.d.ts +25 -0
- package/build/mathts-debug.js +575 -521
- package/build/mathts-debug.js.map +1 -1
- package/build/mathts-debug.wasm +0 -0
- package/build/mathts-debug.wasm.map +1 -1
- package/build/mathts-debug.wat +1255 -482
- package/build/mathts.d.ts +25 -0
- package/build/mathts.js +244 -198
- package/build/mathts.js.map +1 -1
- package/build/mathts.wasm +0 -0
- package/build/mathts.wat +1247 -633
- package/build/wasm-manifest.json +2 -2
- package/package.json +12 -5
package/build/mathts-debug.wat
CHANGED
|
@@ -12,39 +12,45 @@
|
|
|
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 (
|
|
16
|
-
(type $14 (func (param f64 f64
|
|
17
|
-
(type $15 (func (param
|
|
18
|
-
(type $16 (func))
|
|
19
|
-
(type $17 (func
|
|
20
|
-
(type $18 (func (param i32 i32 i32
|
|
21
|
-
(type $19 (func (param
|
|
22
|
-
(type $20 (func (param
|
|
23
|
-
(type $21 (func (param f64
|
|
24
|
-
(type $22 (func (param i32)))
|
|
25
|
-
(type $23 (func (param i32
|
|
26
|
-
(type $24 (func (param i32
|
|
27
|
-
(type $25 (func (param i32 i32 f64)
|
|
28
|
-
(type $26 (func (param i32 i32
|
|
29
|
-
(type $27 (func (param i32
|
|
30
|
-
(type $28 (func (param
|
|
31
|
-
(type $29 (func (param
|
|
32
|
-
(type $30 (func (param i32 i32 i32
|
|
33
|
-
(type $31 (func (param i32 i32 i32
|
|
34
|
-
(type $32 (func (param
|
|
35
|
-
(type $33 (func (param f64
|
|
36
|
-
(type $34 (func (param i32 f64
|
|
37
|
-
(type $35 (func (param i32
|
|
38
|
-
(type $36 (func (param i32 i32 i32 i32 f64)))
|
|
39
|
-
(type $37 (func (param
|
|
40
|
-
(type $38 (func (param f64 i32 i32
|
|
41
|
-
(type $39 (func (param f64 i32 i32 i32 i32 f64 i32)))
|
|
42
|
-
(type $40 (func (param i32
|
|
43
|
-
(type $41 (func (param i32 i32
|
|
44
|
-
(type $42 (func (param
|
|
45
|
-
(type $43 (func (param i32 i32 f64 f64)))
|
|
46
|
-
(type $44 (func (param
|
|
47
|
-
(
|
|
15
|
+
(type $13 (func (result i32)))
|
|
16
|
+
(type $14 (func (param f64 f64) (result i32)))
|
|
17
|
+
(type $15 (func (param f64 f64 f64) (result f64)))
|
|
18
|
+
(type $16 (func (param i32 f64 i32)))
|
|
19
|
+
(type $17 (func))
|
|
20
|
+
(type $18 (func (param i32 i32 i32 i32 i32)))
|
|
21
|
+
(type $19 (func (param i32 i32 i32 f64) (result i32)))
|
|
22
|
+
(type $20 (func (param i64 i64) (result i64)))
|
|
23
|
+
(type $21 (func (param i32 f64) (result f64)))
|
|
24
|
+
(type $22 (func (param f64 i32) (result f64)))
|
|
25
|
+
(type $23 (func (param i32)))
|
|
26
|
+
(type $24 (func (param i32 f64 f64) (result i32)))
|
|
27
|
+
(type $25 (func (param i32 i32 f64)))
|
|
28
|
+
(type $26 (func (param i32 i32 f64) (result i32)))
|
|
29
|
+
(type $27 (func (param i32 i32 i32 i32 i32) (result i32)))
|
|
30
|
+
(type $28 (func (param i32 f64) (result i32)))
|
|
31
|
+
(type $29 (func (param f64 f64 i32) (result f64)))
|
|
32
|
+
(type $30 (func (param i32 i32 i32 i32 i32 i32)))
|
|
33
|
+
(type $31 (func (param i32 i32 i32) (result f64)))
|
|
34
|
+
(type $32 (func (param i32 i32 i32 i32 i32 i32) (result i32)))
|
|
35
|
+
(type $33 (func (param f64 i64) (result i32)))
|
|
36
|
+
(type $34 (func (param f64 i32 f64 i32 i32)))
|
|
37
|
+
(type $35 (func (param i32 f64 f64)))
|
|
38
|
+
(type $36 (func (param i32 i32 i32 i32) (result f64)))
|
|
39
|
+
(type $37 (func (param i32 i32 i32 i32 f64)))
|
|
40
|
+
(type $38 (func (param f64 i32 i32)))
|
|
41
|
+
(type $39 (func (param f64 i32 i32 i32 i32 i32 f64 i32)))
|
|
42
|
+
(type $40 (func (param f64 i32 i32 i32 i32 f64 i32)))
|
|
43
|
+
(type $41 (func (param i32 i32 i32 i32 f64) (result i32)))
|
|
44
|
+
(type $42 (func (param i32 f64 f64) (result f64)))
|
|
45
|
+
(type $43 (func (param i32 i32 f64 f64 f64 f64) (result i32)))
|
|
46
|
+
(type $44 (func (param f64 f64 f64 f64) (result f64)))
|
|
47
|
+
(type $45 (func (param i32 i32 f64 f64)))
|
|
48
|
+
(type $46 (func (param i32 f64 f64 i32)))
|
|
49
|
+
(global $src/abort/abortMessage (mut i32) (i32.const 0))
|
|
50
|
+
(global $src/abort/abortFile (mut i32) (i32.const 0))
|
|
51
|
+
(global $src/abort/abortLine (mut i32) (i32.const 0))
|
|
52
|
+
(global $src/abort/abortColumn (mut i32) (i32.const 0))
|
|
53
|
+
(global $src/abort/abortPending (mut i32) (i32.const 0))
|
|
48
54
|
(global $src/ops/scalar/PI f64 (f64.const 3.141592653589793))
|
|
49
55
|
(global $src/ops/scalar/E f64 (f64.const 2.718281828459045))
|
|
50
56
|
(global $src/ops/scalar/PHI f64 (f64.const 1.618033988749895))
|
|
@@ -55,8 +61,12 @@
|
|
|
55
61
|
(global $src/ops/scalar/LOG2E f64 (f64.const 1.4426950408889634))
|
|
56
62
|
(global $src/ops/scalar/LOG10E f64 (f64.const 0.4342944819032518))
|
|
57
63
|
(global $src/ops/scalar/EPSILON f64 (f64.const 2.220446049250313e-16))
|
|
58
|
-
(global $src/algebra/decomposition/
|
|
64
|
+
(global $src/algebra/decomposition/PIVOT_REL_TOL f64 (f64.const 1e-14))
|
|
65
|
+
(global $src/algebra/decomposition/TINY_COLUMN f64 (f64.const 3.054936363499605e-151))
|
|
66
|
+
(global $src/algebra/decomposition/HUGE_COLUMN f64 (f64.const 3273390607896141870013189e126))
|
|
59
67
|
(global $src/ops/special/EULER f64 (f64.const 0.5772156649015329))
|
|
68
|
+
(global $src/ops/special/_ORDER_MAX_I32 f64 (f64.const 2147483646))
|
|
69
|
+
(global $src/ops/special/_ORDER_MAX_LAGUERRE f64 (f64.const 1e9))
|
|
60
70
|
(global $src/ops/number-theory/MAX_SAFE_INT f64 (f64.const 9007199254740992))
|
|
61
71
|
(global $src/special/_LGAMMA_G f64 (f64.const 7))
|
|
62
72
|
(global $src/special/_LGAMMA_C0 f64 (f64.const 0.9999999999998099))
|
|
@@ -72,6 +82,8 @@
|
|
|
72
82
|
(global $src/special/_TWO_OVER_PI f64 (f64.const 0.6366197723675814))
|
|
73
83
|
(global $src/special/_ONE_OVER_PI f64 (f64.const 0.3183098861837907))
|
|
74
84
|
(global $src/special/_BESSEL_SERIES_MAX f64 (f64.const 13))
|
|
85
|
+
(global $src/special/_BESSEL_J_MAX_SWEEP f64 (f64.const 12e8))
|
|
86
|
+
(global $src/special/_BESSEL_J_DOWN f64 (f64.const 1.90109156629516e-211))
|
|
75
87
|
(global $src/special/AIRY_U_MAX i32 (i32.const 12))
|
|
76
88
|
(global $src/special/AI0 f64 (f64.const 0.3550280538878172))
|
|
77
89
|
(global $src/special/AI_PRIME0 f64 (f64.const 0.2588194037928068))
|
|
@@ -89,8 +101,10 @@
|
|
|
89
101
|
(global $~lib/shared/runtime/Runtime.Minimal i32 (i32.const 1))
|
|
90
102
|
(global $~lib/shared/runtime/Runtime.Incremental i32 (i32.const 2))
|
|
91
103
|
(global $~lib/native/ASC_RUNTIME i32 (i32.const 0))
|
|
92
|
-
(global $~lib/
|
|
93
|
-
(global $~lib/
|
|
104
|
+
(global $~lib/builtins/f64.MAX_VALUE f64 (f64.const 1797693134862315708145274e284))
|
|
105
|
+
(global $~lib/builtins/i32.MIN_VALUE i32 (i32.const -2147483648))
|
|
106
|
+
(global $~lib/rt/__rtti_base i32 (i32.const 14208))
|
|
107
|
+
(global $~lib/memory/__heap_base i32 (i32.const 14252))
|
|
94
108
|
(memory $0 1)
|
|
95
109
|
(data $0 (i32.const 12) "<\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00(\00\00\00A\00l\00l\00o\00c\00a\00t\00i\00o\00n\00 \00t\00o\00o\00 \00l\00a\00r\00g\00e\00\00\00\00\00")
|
|
96
110
|
(data $1 (i32.const 76) "<\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\1e\00\00\00~\00l\00i\00b\00/\00r\00t\00/\00s\00t\00u\00b\00.\00t\00s\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00")
|
|
@@ -107,12 +121,26 @@
|
|
|
107
121
|
(data $12 (i32.const 12812) "<\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00$\00\00\00~\00l\00i\00b\00/\00t\00y\00p\00e\00d\00a\00r\00r\00a\00y\00.\00t\00s\00\00\00\00\00\00\00\00\00")
|
|
108
122
|
(data $13 (i32.const 12876) "|\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00^\00\00\00U\00n\00e\00x\00p\00e\00c\00t\00e\00d\00 \00\'\00n\00u\00l\00l\00\'\00 \00(\00n\00o\00t\00 \00a\00s\00s\00i\00g\00n\00e\00d\00 \00o\00r\00 \00f\00a\00i\00l\00e\00d\00 \00c\00a\00s\00t\00)\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00")
|
|
109
123
|
(data $14 (i32.const 13004) "L\00\00\00\00\00\00\00\00\00\00\00\02\00\00\008\00\00\00s\00r\00c\00/\00a\00l\00g\00e\00b\00r\00a\00/\00d\00e\00c\00o\00m\00p\00o\00s\00i\00t\00i\00o\00n\00.\00t\00s\00\00\00\00\00")
|
|
110
|
-
(data $15 (i32.const 13084) "
|
|
111
|
-
(data $16 (i32.const
|
|
112
|
-
(data $17 (i32.const
|
|
124
|
+
(data $15 (i32.const 13084) "|\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00^\00\00\00c\00h\00e\00b\00y\00s\00h\00e\00v\00T\00:\00 \00o\00r\00d\00e\00r\00 \00e\00x\00c\00e\00e\00d\00s\00 \00t\00h\00e\00 \00s\00u\00p\00p\00o\00r\00t\00e\00d\00 \00m\00a\00x\00i\00m\00u\00m\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00")
|
|
125
|
+
(data $16 (i32.const 13212) "<\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00$\00\00\00s\00r\00c\00/\00o\00p\00s\00/\00s\00p\00e\00c\00i\00a\00l\00.\00t\00s\00\00\00\00\00\00\00\00\00")
|
|
126
|
+
(data $17 (i32.const 13276) "l\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00Z\00\00\00h\00e\00r\00m\00i\00t\00e\00H\00:\00 \00o\00r\00d\00e\00r\00 \00e\00x\00c\00e\00e\00d\00s\00 \00t\00h\00e\00 \00s\00u\00p\00p\00o\00r\00t\00e\00d\00 \00m\00a\00x\00i\00m\00u\00m\00\00\00")
|
|
127
|
+
(data $18 (i32.const 13388) "l\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\\\00\00\00l\00a\00g\00u\00e\00r\00r\00e\00L\00:\00 \00o\00r\00d\00e\00r\00 \00e\00x\00c\00e\00e\00d\00s\00 \00t\00h\00e\00 \00s\00u\00p\00p\00o\00r\00t\00e\00d\00 \00m\00a\00x\00i\00m\00u\00m\00")
|
|
128
|
+
(data $19 (i32.const 13500) "l\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\\\00\00\00l\00e\00g\00e\00n\00d\00r\00e\00P\00:\00 \00o\00r\00d\00e\00r\00 \00e\00x\00c\00e\00e\00d\00s\00 \00t\00h\00e\00 \00s\00u\00p\00p\00o\00r\00t\00e\00d\00 \00m\00a\00x\00i\00m\00u\00m\00")
|
|
129
|
+
(data $20 (i32.const 13612) ",\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\1a\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00.\00t\00s\00\00\00")
|
|
130
|
+
(data $21 (i32.const 13660) "|\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00^\00\00\00E\00l\00e\00m\00e\00n\00t\00 \00t\00y\00p\00e\00 \00m\00u\00s\00t\00 \00b\00e\00 \00n\00u\00l\00l\00a\00b\00l\00e\00 \00i\00f\00 \00a\00r\00r\00a\00y\00 \00i\00s\00 \00h\00o\00l\00e\00y\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00")
|
|
131
|
+
(data $22 (i32.const 13788) "l\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00X\00\00\00b\00e\00s\00s\00e\00l\00J\00:\00 \00o\00r\00d\00e\00r\00 \00e\00x\00c\00e\00e\00d\00s\00 \00t\00h\00e\00 \00s\00u\00p\00p\00o\00r\00t\00e\00d\00 \00m\00a\00x\00i\00m\00u\00m\00\00\00\00\00")
|
|
132
|
+
(data $23 (i32.const 13900) ",\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00\1c\00\00\00s\00r\00c\00/\00s\00p\00e\00c\00i\00a\00l\00.\00t\00s\00")
|
|
133
|
+
(data $24 (i32.const 13948) "\8c\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00r\00\00\00b\00e\00s\00s\00e\00l\00J\00:\00 \00t\00h\00e\00 \00d\00o\00w\00n\00w\00a\00r\00d\00 \00s\00w\00e\00e\00p\00 \00e\00x\00c\00e\00e\00d\00s\00 \00t\00h\00e\00 \00s\00u\00p\00p\00o\00r\00t\00e\00d\00 \00m\00a\00x\00i\00m\00u\00m\00\00\00\00\00\00\00\00\00\00\00")
|
|
134
|
+
(data $25 (i32.const 14092) "l\00\00\00\00\00\00\00\00\00\00\00\02\00\00\00X\00\00\00b\00e\00s\00s\00e\00l\00Y\00:\00 \00o\00r\00d\00e\00r\00 \00e\00x\00c\00e\00e\00d\00s\00 \00t\00h\00e\00 \00s\00u\00p\00p\00o\00r\00t\00e\00d\00 \00m\00a\00x\00i\00m\00u\00m\00\00\00\00\00")
|
|
135
|
+
(data $26 (i32.const 14208) "\n\00\00\00 \00\00\00 \00\00\00 \00\00\00\00\00\00\00 \00\00\00\01\1a\00\00\01\t\00\00\02\1a\00\00\02\t\00\00\02A\00\00")
|
|
113
136
|
(table $0 1 1 funcref)
|
|
114
137
|
(elem $0 (i32.const 1))
|
|
115
138
|
(export "heap_reset" (func $src/heap/heap_reset))
|
|
139
|
+
(export "abort_take" (func $src/abort/abort_take))
|
|
140
|
+
(export "abort_message" (func $src/abort/abort_message))
|
|
141
|
+
(export "abort_file" (func $src/abort/abort_file))
|
|
142
|
+
(export "abort_line" (func $src/abort/abort_line))
|
|
143
|
+
(export "abort_column" (func $src/abort/abort_column))
|
|
116
144
|
(export "complex" (func $src/types/complex/complex))
|
|
117
145
|
(export "complexFromPolar" (func $src/types/complex/complexFromPolar))
|
|
118
146
|
(export "add_f64" (func $src/ops/scalar/add_f64))
|
|
@@ -447,6 +475,31 @@
|
|
|
447
475
|
(func $src/heap/heap_reset
|
|
448
476
|
call $~lib/rt/stub/__reset
|
|
449
477
|
)
|
|
478
|
+
(func $src/abort/abort_take (result i32)
|
|
479
|
+
(local $pending i32)
|
|
480
|
+
global.get $src/abort/abortPending
|
|
481
|
+
local.set $pending
|
|
482
|
+
i32.const 0
|
|
483
|
+
global.set $src/abort/abortPending
|
|
484
|
+
local.get $pending
|
|
485
|
+
return
|
|
486
|
+
)
|
|
487
|
+
(func $src/abort/abort_message (result i32)
|
|
488
|
+
global.get $src/abort/abortMessage
|
|
489
|
+
return
|
|
490
|
+
)
|
|
491
|
+
(func $src/abort/abort_file (result i32)
|
|
492
|
+
global.get $src/abort/abortFile
|
|
493
|
+
return
|
|
494
|
+
)
|
|
495
|
+
(func $src/abort/abort_line (result i32)
|
|
496
|
+
global.get $src/abort/abortLine
|
|
497
|
+
return
|
|
498
|
+
)
|
|
499
|
+
(func $src/abort/abort_column (result i32)
|
|
500
|
+
global.get $src/abort/abortColumn
|
|
501
|
+
return
|
|
502
|
+
)
|
|
450
503
|
(func $src/types/complex/Complex#set:re (param $this i32) (param $re f64)
|
|
451
504
|
local.get $this
|
|
452
505
|
local.get $re
|
|
@@ -457,6 +510,19 @@
|
|
|
457
510
|
local.get $im
|
|
458
511
|
f64.store offset=8
|
|
459
512
|
)
|
|
513
|
+
(func $src/abort/trapAbort (param $message i32) (param $fileName i32) (param $line i32) (param $column i32)
|
|
514
|
+
local.get $message
|
|
515
|
+
global.set $src/abort/abortMessage
|
|
516
|
+
local.get $fileName
|
|
517
|
+
global.set $src/abort/abortFile
|
|
518
|
+
local.get $line
|
|
519
|
+
global.set $src/abort/abortLine
|
|
520
|
+
local.get $column
|
|
521
|
+
global.set $src/abort/abortColumn
|
|
522
|
+
i32.const 1
|
|
523
|
+
global.set $src/abort/abortPending
|
|
524
|
+
unreachable
|
|
525
|
+
)
|
|
460
526
|
(func $~lib/rt/stub/maybeGrowMemory (param $newOffset i32)
|
|
461
527
|
(local $pagesBefore i32)
|
|
462
528
|
(local $maxOffset i32)
|
|
@@ -536,7 +602,7 @@
|
|
|
536
602
|
i32.const 96
|
|
537
603
|
i32.const 33
|
|
538
604
|
i32.const 29
|
|
539
|
-
call
|
|
605
|
+
call $src/abort/trapAbort
|
|
540
606
|
unreachable
|
|
541
607
|
end
|
|
542
608
|
global.get $~lib/rt/stub/offset
|
|
@@ -603,7 +669,7 @@
|
|
|
603
669
|
i32.const 96
|
|
604
670
|
i32.const 86
|
|
605
671
|
i32.const 30
|
|
606
|
-
call
|
|
672
|
+
call $src/abort/trapAbort
|
|
607
673
|
unreachable
|
|
608
674
|
end
|
|
609
675
|
i32.const 16
|
|
@@ -7086,8 +7152,32 @@
|
|
|
7086
7152
|
return
|
|
7087
7153
|
)
|
|
7088
7154
|
(func $src/ops/scalar/round_f64 (param $a f64) (result f64)
|
|
7155
|
+
(local $t f64)
|
|
7089
7156
|
local.get $a
|
|
7090
|
-
f64.
|
|
7157
|
+
f64.const 0
|
|
7158
|
+
f64.eq
|
|
7159
|
+
if
|
|
7160
|
+
f64.const 0
|
|
7161
|
+
return
|
|
7162
|
+
end
|
|
7163
|
+
local.get $a
|
|
7164
|
+
f64.trunc
|
|
7165
|
+
local.set $t
|
|
7166
|
+
local.get $a
|
|
7167
|
+
local.get $t
|
|
7168
|
+
f64.sub
|
|
7169
|
+
f64.abs
|
|
7170
|
+
f64.const 0.5
|
|
7171
|
+
f64.ge
|
|
7172
|
+
if (result f64)
|
|
7173
|
+
local.get $t
|
|
7174
|
+
f64.const 1
|
|
7175
|
+
local.get $a
|
|
7176
|
+
f64.copysign
|
|
7177
|
+
f64.add
|
|
7178
|
+
else
|
|
7179
|
+
local.get $t
|
|
7180
|
+
end
|
|
7091
7181
|
return
|
|
7092
7182
|
)
|
|
7093
7183
|
(func $src/ops/scalar/trunc_f64 (param $a f64) (result f64)
|
|
@@ -8703,7 +8793,7 @@
|
|
|
8703
8793
|
i32.const 12704
|
|
8704
8794
|
i32.const 19
|
|
8705
8795
|
i32.const 57
|
|
8706
|
-
call
|
|
8796
|
+
call $src/abort/trapAbort
|
|
8707
8797
|
unreachable
|
|
8708
8798
|
end
|
|
8709
8799
|
local.get $length
|
|
@@ -10843,7 +10933,7 @@
|
|
|
10843
10933
|
i32.const 12832
|
|
10844
10934
|
i32.const 1446
|
|
10845
10935
|
i32.const 64
|
|
10846
|
-
call
|
|
10936
|
+
call $src/abort/trapAbort
|
|
10847
10937
|
unreachable
|
|
10848
10938
|
end
|
|
10849
10939
|
local.get $this
|
|
@@ -10867,7 +10957,7 @@
|
|
|
10867
10957
|
i32.const 12832
|
|
10868
10958
|
i32.const 1457
|
|
10869
10959
|
i32.const 64
|
|
10870
|
-
call
|
|
10960
|
+
call $src/abort/trapAbort
|
|
10871
10961
|
unreachable
|
|
10872
10962
|
end
|
|
10873
10963
|
local.get $this
|
|
@@ -11345,7 +11435,7 @@
|
|
|
11345
11435
|
i32.const 12832
|
|
11346
11436
|
i32.const 747
|
|
11347
11437
|
i32.const 64
|
|
11348
|
-
call
|
|
11438
|
+
call $src/abort/trapAbort
|
|
11349
11439
|
unreachable
|
|
11350
11440
|
end
|
|
11351
11441
|
local.get $this
|
|
@@ -11357,6 +11447,71 @@
|
|
|
11357
11447
|
local.get $value
|
|
11358
11448
|
i32.store
|
|
11359
11449
|
)
|
|
11450
|
+
(func $src/algebra/decomposition/pivotIsZero (param $work i32) (param $n i32) (param $row i32) (param $k i32) (param $pivot f64) (result i32)
|
|
11451
|
+
(local $s f64)
|
|
11452
|
+
(local $j i32)
|
|
11453
|
+
(local $x f64)
|
|
11454
|
+
(local $x|8 f64)
|
|
11455
|
+
f64.const 0
|
|
11456
|
+
local.set $s
|
|
11457
|
+
i32.const 0
|
|
11458
|
+
local.set $j
|
|
11459
|
+
loop $for-loop|0
|
|
11460
|
+
local.get $j
|
|
11461
|
+
local.get $k
|
|
11462
|
+
i32.lt_s
|
|
11463
|
+
if
|
|
11464
|
+
local.get $s
|
|
11465
|
+
block $~lib/math/NativeMath.abs|inlined.2 (result f64)
|
|
11466
|
+
local.get $work
|
|
11467
|
+
local.get $row
|
|
11468
|
+
local.get $n
|
|
11469
|
+
i32.mul
|
|
11470
|
+
local.get $j
|
|
11471
|
+
i32.add
|
|
11472
|
+
call $~lib/typedarray/Float64Array#__get
|
|
11473
|
+
local.set $x
|
|
11474
|
+
local.get $x
|
|
11475
|
+
f64.abs
|
|
11476
|
+
br $~lib/math/NativeMath.abs|inlined.2
|
|
11477
|
+
end
|
|
11478
|
+
block $~lib/math/NativeMath.abs|inlined.3 (result f64)
|
|
11479
|
+
local.get $work
|
|
11480
|
+
local.get $j
|
|
11481
|
+
local.get $n
|
|
11482
|
+
i32.mul
|
|
11483
|
+
local.get $k
|
|
11484
|
+
i32.add
|
|
11485
|
+
call $~lib/typedarray/Float64Array#__get
|
|
11486
|
+
local.set $x|8
|
|
11487
|
+
local.get $x|8
|
|
11488
|
+
f64.abs
|
|
11489
|
+
br $~lib/math/NativeMath.abs|inlined.3
|
|
11490
|
+
end
|
|
11491
|
+
f64.mul
|
|
11492
|
+
f64.add
|
|
11493
|
+
local.set $s
|
|
11494
|
+
local.get $j
|
|
11495
|
+
i32.const 1
|
|
11496
|
+
i32.add
|
|
11497
|
+
local.set $j
|
|
11498
|
+
br $for-loop|0
|
|
11499
|
+
end
|
|
11500
|
+
end
|
|
11501
|
+
local.get $pivot
|
|
11502
|
+
f64.const inf
|
|
11503
|
+
f64.lt
|
|
11504
|
+
if (result i32)
|
|
11505
|
+
local.get $pivot
|
|
11506
|
+
global.get $src/algebra/decomposition/PIVOT_REL_TOL
|
|
11507
|
+
local.get $s
|
|
11508
|
+
f64.mul
|
|
11509
|
+
f64.le
|
|
11510
|
+
else
|
|
11511
|
+
i32.const 0
|
|
11512
|
+
end
|
|
11513
|
+
return
|
|
11514
|
+
)
|
|
11360
11515
|
(func $~lib/typedarray/Int32Array#__get (param $this i32) (param $index i32) (result i32)
|
|
11361
11516
|
local.get $index
|
|
11362
11517
|
local.get $this
|
|
@@ -11369,7 +11524,7 @@
|
|
|
11369
11524
|
i32.const 12832
|
|
11370
11525
|
i32.const 736
|
|
11371
11526
|
i32.const 64
|
|
11372
|
-
call
|
|
11527
|
+
call $src/abort/trapAbort
|
|
11373
11528
|
unreachable
|
|
11374
11529
|
end
|
|
11375
11530
|
local.get $this
|
|
@@ -11508,9 +11663,12 @@
|
|
|
11508
11663
|
br $for-loop|3
|
|
11509
11664
|
end
|
|
11510
11665
|
end
|
|
11666
|
+
local.get $work
|
|
11667
|
+
local.get $n
|
|
11668
|
+
local.get $pivotRow
|
|
11669
|
+
local.get $k
|
|
11511
11670
|
local.get $maxVal
|
|
11512
|
-
|
|
11513
|
-
f64.lt
|
|
11671
|
+
call $src/algebra/decomposition/pivotIsZero
|
|
11514
11672
|
if
|
|
11515
11673
|
i32.const -1
|
|
11516
11674
|
return
|
|
@@ -11667,7 +11825,15 @@
|
|
|
11667
11825
|
br $for-loop|2
|
|
11668
11826
|
end
|
|
11669
11827
|
end
|
|
11670
|
-
|
|
11828
|
+
local.get $work
|
|
11829
|
+
local.get $n
|
|
11830
|
+
local.get $n
|
|
11831
|
+
i32.const 1
|
|
11832
|
+
i32.sub
|
|
11833
|
+
local.get $n
|
|
11834
|
+
i32.const 1
|
|
11835
|
+
i32.sub
|
|
11836
|
+
block $~lib/math/NativeMath.abs|inlined.4 (result f64)
|
|
11671
11837
|
local.get $work
|
|
11672
11838
|
local.get $n
|
|
11673
11839
|
i32.const 1
|
|
@@ -11682,10 +11848,9 @@
|
|
|
11682
11848
|
local.set $x|22
|
|
11683
11849
|
local.get $x|22
|
|
11684
11850
|
f64.abs
|
|
11685
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
11851
|
+
br $~lib/math/NativeMath.abs|inlined.4
|
|
11686
11852
|
end
|
|
11687
|
-
|
|
11688
|
-
f64.lt
|
|
11853
|
+
call $src/algebra/decomposition/pivotIsZero
|
|
11689
11854
|
if
|
|
11690
11855
|
i32.const -1
|
|
11691
11856
|
return
|
|
@@ -11779,27 +11944,34 @@
|
|
|
11779
11944
|
(local $vBuf i32)
|
|
11780
11945
|
(local $k i32)
|
|
11781
11946
|
(local $norm f64)
|
|
11782
|
-
(local $
|
|
11947
|
+
(local $amax f64)
|
|
11948
|
+
(local $i|14 i32)
|
|
11783
11949
|
(local $v f64)
|
|
11784
11950
|
(local $x f64)
|
|
11951
|
+
(local $av f64)
|
|
11952
|
+
(local $scaled f64)
|
|
11953
|
+
(local $i|19 i32)
|
|
11954
|
+
(local $t f64)
|
|
11955
|
+
(local $x|21 f64)
|
|
11956
|
+
(local $x|22 f64)
|
|
11785
11957
|
(local $akk f64)
|
|
11786
11958
|
(local $sign f64)
|
|
11787
11959
|
(local $u1 f64)
|
|
11788
11960
|
(local $vDotV f64)
|
|
11789
|
-
(local $i|
|
|
11961
|
+
(local $i|27 i32)
|
|
11790
11962
|
(local $vi f64)
|
|
11791
11963
|
(local $tau f64)
|
|
11792
11964
|
(local $j i32)
|
|
11793
11965
|
(local $vDotCol f64)
|
|
11794
|
-
(local $i|25 i32)
|
|
11795
|
-
(local $factor f64)
|
|
11796
|
-
(local $i|27 i32)
|
|
11797
|
-
(local $j|28 i32)
|
|
11798
|
-
(local $vDotCol|29 f64)
|
|
11799
|
-
(local $i|30 i32)
|
|
11800
|
-
(local $factor|31 f64)
|
|
11801
11966
|
(local $i|32 i32)
|
|
11802
|
-
(local $
|
|
11967
|
+
(local $factor f64)
|
|
11968
|
+
(local $i|34 i32)
|
|
11969
|
+
(local $j|35 i32)
|
|
11970
|
+
(local $vDotCol|36 f64)
|
|
11971
|
+
(local $i|37 i32)
|
|
11972
|
+
(local $factor|38 f64)
|
|
11973
|
+
(local $i|39 i32)
|
|
11974
|
+
(local $i|40 i32)
|
|
11803
11975
|
i32.const 0
|
|
11804
11976
|
local.set $i
|
|
11805
11977
|
loop $for-loop|0
|
|
@@ -11902,15 +12074,17 @@
|
|
|
11902
12074
|
block $for-continue|3
|
|
11903
12075
|
f64.const 0
|
|
11904
12076
|
local.set $norm
|
|
12077
|
+
f64.const 0
|
|
12078
|
+
local.set $amax
|
|
11905
12079
|
local.get $k
|
|
11906
|
-
local.set $i|
|
|
12080
|
+
local.set $i|14
|
|
11907
12081
|
loop $for-loop|4
|
|
11908
|
-
local.get $i|
|
|
12082
|
+
local.get $i|14
|
|
11909
12083
|
local.get $m
|
|
11910
12084
|
i32.lt_s
|
|
11911
12085
|
if
|
|
11912
12086
|
local.get $r_out
|
|
11913
|
-
local.get $i|
|
|
12087
|
+
local.get $i|14
|
|
11914
12088
|
local.get $n
|
|
11915
12089
|
i32.mul
|
|
11916
12090
|
local.get $k
|
|
@@ -11923,27 +12097,111 @@
|
|
|
11923
12097
|
f64.mul
|
|
11924
12098
|
f64.add
|
|
11925
12099
|
local.set $norm
|
|
11926
|
-
|
|
12100
|
+
block $~lib/math/NativeMath.abs|inlined.5 (result f64)
|
|
12101
|
+
local.get $v
|
|
12102
|
+
local.set $x
|
|
12103
|
+
local.get $x
|
|
12104
|
+
f64.abs
|
|
12105
|
+
br $~lib/math/NativeMath.abs|inlined.5
|
|
12106
|
+
end
|
|
12107
|
+
local.set $av
|
|
12108
|
+
local.get $av
|
|
12109
|
+
local.get $amax
|
|
12110
|
+
f64.gt
|
|
12111
|
+
if
|
|
12112
|
+
local.get $av
|
|
12113
|
+
local.set $amax
|
|
12114
|
+
end
|
|
12115
|
+
local.get $i|14
|
|
11927
12116
|
i32.const 1
|
|
11928
12117
|
i32.add
|
|
11929
|
-
local.set $i|
|
|
12118
|
+
local.set $i|14
|
|
11930
12119
|
br $for-loop|4
|
|
11931
12120
|
end
|
|
11932
12121
|
end
|
|
11933
|
-
|
|
12122
|
+
local.get $amax
|
|
12123
|
+
f64.const 0
|
|
12124
|
+
f64.eq
|
|
12125
|
+
if (result i32)
|
|
11934
12126
|
local.get $norm
|
|
11935
|
-
|
|
11936
|
-
|
|
11937
|
-
|
|
11938
|
-
|
|
12127
|
+
f64.const 0
|
|
12128
|
+
f64.eq
|
|
12129
|
+
else
|
|
12130
|
+
i32.const 0
|
|
11939
12131
|
end
|
|
11940
|
-
local.set $norm
|
|
11941
|
-
local.get $norm
|
|
11942
|
-
global.get $src/algebra/decomposition/DECOMP_EPS
|
|
11943
|
-
f64.lt
|
|
11944
12132
|
if
|
|
11945
12133
|
br $for-continue|3
|
|
11946
12134
|
end
|
|
12135
|
+
local.get $amax
|
|
12136
|
+
global.get $src/algebra/decomposition/TINY_COLUMN
|
|
12137
|
+
f64.lt
|
|
12138
|
+
if (result i32)
|
|
12139
|
+
i32.const 1
|
|
12140
|
+
else
|
|
12141
|
+
local.get $amax
|
|
12142
|
+
global.get $src/algebra/decomposition/HUGE_COLUMN
|
|
12143
|
+
f64.gt
|
|
12144
|
+
if (result i32)
|
|
12145
|
+
local.get $amax
|
|
12146
|
+
global.get $~lib/builtins/f64.MAX_VALUE
|
|
12147
|
+
f64.le
|
|
12148
|
+
else
|
|
12149
|
+
i32.const 0
|
|
12150
|
+
end
|
|
12151
|
+
end
|
|
12152
|
+
if
|
|
12153
|
+
f64.const 0
|
|
12154
|
+
local.set $scaled
|
|
12155
|
+
local.get $k
|
|
12156
|
+
local.set $i|19
|
|
12157
|
+
loop $for-loop|5
|
|
12158
|
+
local.get $i|19
|
|
12159
|
+
local.get $m
|
|
12160
|
+
i32.lt_s
|
|
12161
|
+
if
|
|
12162
|
+
local.get $r_out
|
|
12163
|
+
local.get $i|19
|
|
12164
|
+
local.get $n
|
|
12165
|
+
i32.mul
|
|
12166
|
+
local.get $k
|
|
12167
|
+
i32.add
|
|
12168
|
+
call $~lib/typedarray/Float64Array#__get
|
|
12169
|
+
local.get $amax
|
|
12170
|
+
f64.div
|
|
12171
|
+
local.set $t
|
|
12172
|
+
local.get $scaled
|
|
12173
|
+
local.get $t
|
|
12174
|
+
local.get $t
|
|
12175
|
+
f64.mul
|
|
12176
|
+
f64.add
|
|
12177
|
+
local.set $scaled
|
|
12178
|
+
local.get $i|19
|
|
12179
|
+
i32.const 1
|
|
12180
|
+
i32.add
|
|
12181
|
+
local.set $i|19
|
|
12182
|
+
br $for-loop|5
|
|
12183
|
+
end
|
|
12184
|
+
end
|
|
12185
|
+
local.get $amax
|
|
12186
|
+
block $~lib/math/NativeMath.sqrt|inlined.0 (result f64)
|
|
12187
|
+
local.get $scaled
|
|
12188
|
+
local.set $x|21
|
|
12189
|
+
local.get $x|21
|
|
12190
|
+
f64.sqrt
|
|
12191
|
+
br $~lib/math/NativeMath.sqrt|inlined.0
|
|
12192
|
+
end
|
|
12193
|
+
f64.mul
|
|
12194
|
+
local.set $norm
|
|
12195
|
+
else
|
|
12196
|
+
block $~lib/math/NativeMath.sqrt|inlined.1 (result f64)
|
|
12197
|
+
local.get $norm
|
|
12198
|
+
local.set $x|22
|
|
12199
|
+
local.get $x|22
|
|
12200
|
+
f64.sqrt
|
|
12201
|
+
br $~lib/math/NativeMath.sqrt|inlined.1
|
|
12202
|
+
end
|
|
12203
|
+
local.set $norm
|
|
12204
|
+
end
|
|
11947
12205
|
local.get $r_out
|
|
11948
12206
|
local.get $k
|
|
11949
12207
|
local.get $n
|
|
@@ -11974,9 +12232,9 @@
|
|
|
11974
12232
|
f64.const 1
|
|
11975
12233
|
local.set $vDotV
|
|
11976
12234
|
i32.const 1
|
|
11977
|
-
local.set $i|
|
|
11978
|
-
loop $for-loop|
|
|
11979
|
-
local.get $i|
|
|
12235
|
+
local.set $i|27
|
|
12236
|
+
loop $for-loop|6
|
|
12237
|
+
local.get $i|27
|
|
11980
12238
|
local.get $m
|
|
11981
12239
|
local.get $k
|
|
11982
12240
|
i32.sub
|
|
@@ -11984,7 +12242,7 @@
|
|
|
11984
12242
|
if
|
|
11985
12243
|
local.get $r_out
|
|
11986
12244
|
local.get $k
|
|
11987
|
-
local.get $i|
|
|
12245
|
+
local.get $i|27
|
|
11988
12246
|
i32.add
|
|
11989
12247
|
local.get $n
|
|
11990
12248
|
i32.mul
|
|
@@ -11995,7 +12253,7 @@
|
|
|
11995
12253
|
f64.div
|
|
11996
12254
|
local.set $vi
|
|
11997
12255
|
local.get $vBuf
|
|
11998
|
-
local.get $i|
|
|
12256
|
+
local.get $i|27
|
|
11999
12257
|
local.get $vi
|
|
12000
12258
|
call $~lib/typedarray/Float64Array#__set
|
|
12001
12259
|
local.get $vDotV
|
|
@@ -12004,11 +12262,11 @@
|
|
|
12004
12262
|
f64.mul
|
|
12005
12263
|
f64.add
|
|
12006
12264
|
local.set $vDotV
|
|
12007
|
-
local.get $i|
|
|
12265
|
+
local.get $i|27
|
|
12008
12266
|
i32.const 1
|
|
12009
12267
|
i32.add
|
|
12010
|
-
local.set $i|
|
|
12011
|
-
br $for-loop|
|
|
12268
|
+
local.set $i|27
|
|
12269
|
+
br $for-loop|6
|
|
12012
12270
|
end
|
|
12013
12271
|
end
|
|
12014
12272
|
f64.const 2
|
|
@@ -12017,7 +12275,7 @@
|
|
|
12017
12275
|
local.set $tau
|
|
12018
12276
|
local.get $k
|
|
12019
12277
|
local.set $j
|
|
12020
|
-
loop $for-loop|
|
|
12278
|
+
loop $for-loop|7
|
|
12021
12279
|
local.get $j
|
|
12022
12280
|
local.get $n
|
|
12023
12281
|
i32.lt_s
|
|
@@ -12025,9 +12283,9 @@
|
|
|
12025
12283
|
f64.const 0
|
|
12026
12284
|
local.set $vDotCol
|
|
12027
12285
|
i32.const 0
|
|
12028
|
-
local.set $i|
|
|
12029
|
-
loop $for-loop|
|
|
12030
|
-
local.get $i|
|
|
12286
|
+
local.set $i|32
|
|
12287
|
+
loop $for-loop|8
|
|
12288
|
+
local.get $i|32
|
|
12031
12289
|
local.get $m
|
|
12032
12290
|
local.get $k
|
|
12033
12291
|
i32.sub
|
|
@@ -12035,11 +12293,11 @@
|
|
|
12035
12293
|
if
|
|
12036
12294
|
local.get $vDotCol
|
|
12037
12295
|
local.get $vBuf
|
|
12038
|
-
local.get $i|
|
|
12296
|
+
local.get $i|32
|
|
12039
12297
|
call $~lib/typedarray/Float64Array#__get
|
|
12040
12298
|
local.get $r_out
|
|
12041
12299
|
local.get $k
|
|
12042
|
-
local.get $i|
|
|
12300
|
+
local.get $i|32
|
|
12043
12301
|
i32.add
|
|
12044
12302
|
local.get $n
|
|
12045
12303
|
i32.mul
|
|
@@ -12049,11 +12307,11 @@
|
|
|
12049
12307
|
f64.mul
|
|
12050
12308
|
f64.add
|
|
12051
12309
|
local.set $vDotCol
|
|
12052
|
-
local.get $i|
|
|
12310
|
+
local.get $i|32
|
|
12053
12311
|
i32.const 1
|
|
12054
12312
|
i32.add
|
|
12055
|
-
local.set $i|
|
|
12056
|
-
br $for-loop|
|
|
12313
|
+
local.set $i|32
|
|
12314
|
+
br $for-loop|8
|
|
12057
12315
|
end
|
|
12058
12316
|
end
|
|
12059
12317
|
local.get $tau
|
|
@@ -12061,9 +12319,9 @@
|
|
|
12061
12319
|
f64.mul
|
|
12062
12320
|
local.set $factor
|
|
12063
12321
|
i32.const 0
|
|
12064
|
-
local.set $i|
|
|
12065
|
-
loop $for-loop|
|
|
12066
|
-
local.get $i|
|
|
12322
|
+
local.set $i|34
|
|
12323
|
+
loop $for-loop|9
|
|
12324
|
+
local.get $i|34
|
|
12067
12325
|
local.get $m
|
|
12068
12326
|
local.get $k
|
|
12069
12327
|
i32.sub
|
|
@@ -12071,7 +12329,7 @@
|
|
|
12071
12329
|
if
|
|
12072
12330
|
local.get $r_out
|
|
12073
12331
|
local.get $k
|
|
12074
|
-
local.get $i|
|
|
12332
|
+
local.get $i|34
|
|
12075
12333
|
i32.add
|
|
12076
12334
|
local.get $n
|
|
12077
12335
|
i32.mul
|
|
@@ -12079,7 +12337,7 @@
|
|
|
12079
12337
|
i32.add
|
|
12080
12338
|
local.get $r_out
|
|
12081
12339
|
local.get $k
|
|
12082
|
-
local.get $i|
|
|
12340
|
+
local.get $i|34
|
|
12083
12341
|
i32.add
|
|
12084
12342
|
local.get $n
|
|
12085
12343
|
i32.mul
|
|
@@ -12088,74 +12346,74 @@
|
|
|
12088
12346
|
call $~lib/typedarray/Float64Array#__get
|
|
12089
12347
|
local.get $factor
|
|
12090
12348
|
local.get $vBuf
|
|
12091
|
-
local.get $i|
|
|
12349
|
+
local.get $i|34
|
|
12092
12350
|
call $~lib/typedarray/Float64Array#__get
|
|
12093
12351
|
f64.mul
|
|
12094
12352
|
f64.sub
|
|
12095
12353
|
call $~lib/typedarray/Float64Array#__set
|
|
12096
|
-
local.get $i|
|
|
12354
|
+
local.get $i|34
|
|
12097
12355
|
i32.const 1
|
|
12098
12356
|
i32.add
|
|
12099
|
-
local.set $i|
|
|
12100
|
-
br $for-loop|
|
|
12357
|
+
local.set $i|34
|
|
12358
|
+
br $for-loop|9
|
|
12101
12359
|
end
|
|
12102
12360
|
end
|
|
12103
12361
|
local.get $j
|
|
12104
12362
|
i32.const 1
|
|
12105
12363
|
i32.add
|
|
12106
12364
|
local.set $j
|
|
12107
|
-
br $for-loop|
|
|
12365
|
+
br $for-loop|7
|
|
12108
12366
|
end
|
|
12109
12367
|
end
|
|
12110
12368
|
i32.const 0
|
|
12111
|
-
local.set $j|
|
|
12112
|
-
loop $for-loop|
|
|
12113
|
-
local.get $j|
|
|
12369
|
+
local.set $j|35
|
|
12370
|
+
loop $for-loop|10
|
|
12371
|
+
local.get $j|35
|
|
12114
12372
|
local.get $m
|
|
12115
12373
|
i32.lt_s
|
|
12116
12374
|
if
|
|
12117
12375
|
f64.const 0
|
|
12118
|
-
local.set $vDotCol|
|
|
12376
|
+
local.set $vDotCol|36
|
|
12119
12377
|
i32.const 0
|
|
12120
|
-
local.set $i|
|
|
12121
|
-
loop $for-loop|
|
|
12122
|
-
local.get $i|
|
|
12378
|
+
local.set $i|37
|
|
12379
|
+
loop $for-loop|11
|
|
12380
|
+
local.get $i|37
|
|
12123
12381
|
local.get $m
|
|
12124
12382
|
local.get $k
|
|
12125
12383
|
i32.sub
|
|
12126
12384
|
i32.lt_s
|
|
12127
12385
|
if
|
|
12128
|
-
local.get $vDotCol|
|
|
12386
|
+
local.get $vDotCol|36
|
|
12129
12387
|
local.get $vBuf
|
|
12130
|
-
local.get $i|
|
|
12388
|
+
local.get $i|37
|
|
12131
12389
|
call $~lib/typedarray/Float64Array#__get
|
|
12132
12390
|
local.get $q_out
|
|
12133
12391
|
local.get $k
|
|
12134
|
-
local.get $i|
|
|
12392
|
+
local.get $i|37
|
|
12135
12393
|
i32.add
|
|
12136
12394
|
local.get $m
|
|
12137
12395
|
i32.mul
|
|
12138
|
-
local.get $j|
|
|
12396
|
+
local.get $j|35
|
|
12139
12397
|
i32.add
|
|
12140
12398
|
call $~lib/typedarray/Float64Array#__get
|
|
12141
12399
|
f64.mul
|
|
12142
12400
|
f64.add
|
|
12143
|
-
local.set $vDotCol|
|
|
12144
|
-
local.get $i|
|
|
12401
|
+
local.set $vDotCol|36
|
|
12402
|
+
local.get $i|37
|
|
12145
12403
|
i32.const 1
|
|
12146
12404
|
i32.add
|
|
12147
|
-
local.set $i|
|
|
12148
|
-
br $for-loop|
|
|
12405
|
+
local.set $i|37
|
|
12406
|
+
br $for-loop|11
|
|
12149
12407
|
end
|
|
12150
12408
|
end
|
|
12151
12409
|
local.get $tau
|
|
12152
|
-
local.get $vDotCol|
|
|
12410
|
+
local.get $vDotCol|36
|
|
12153
12411
|
f64.mul
|
|
12154
|
-
local.set $factor|
|
|
12412
|
+
local.set $factor|38
|
|
12155
12413
|
i32.const 0
|
|
12156
|
-
local.set $i|
|
|
12157
|
-
loop $for-loop|
|
|
12158
|
-
local.get $i|
|
|
12414
|
+
local.set $i|39
|
|
12415
|
+
loop $for-loop|12
|
|
12416
|
+
local.get $i|39
|
|
12159
12417
|
local.get $m
|
|
12160
12418
|
local.get $k
|
|
12161
12419
|
i32.sub
|
|
@@ -12163,64 +12421,64 @@
|
|
|
12163
12421
|
if
|
|
12164
12422
|
local.get $q_out
|
|
12165
12423
|
local.get $k
|
|
12166
|
-
local.get $i|
|
|
12424
|
+
local.get $i|39
|
|
12167
12425
|
i32.add
|
|
12168
12426
|
local.get $m
|
|
12169
12427
|
i32.mul
|
|
12170
|
-
local.get $j|
|
|
12428
|
+
local.get $j|35
|
|
12171
12429
|
i32.add
|
|
12172
12430
|
local.get $q_out
|
|
12173
12431
|
local.get $k
|
|
12174
|
-
local.get $i|
|
|
12432
|
+
local.get $i|39
|
|
12175
12433
|
i32.add
|
|
12176
12434
|
local.get $m
|
|
12177
12435
|
i32.mul
|
|
12178
|
-
local.get $j|
|
|
12436
|
+
local.get $j|35
|
|
12179
12437
|
i32.add
|
|
12180
12438
|
call $~lib/typedarray/Float64Array#__get
|
|
12181
|
-
local.get $factor|
|
|
12439
|
+
local.get $factor|38
|
|
12182
12440
|
local.get $vBuf
|
|
12183
|
-
local.get $i|
|
|
12441
|
+
local.get $i|39
|
|
12184
12442
|
call $~lib/typedarray/Float64Array#__get
|
|
12185
12443
|
f64.mul
|
|
12186
12444
|
f64.sub
|
|
12187
12445
|
call $~lib/typedarray/Float64Array#__set
|
|
12188
|
-
local.get $i|
|
|
12446
|
+
local.get $i|39
|
|
12189
12447
|
i32.const 1
|
|
12190
12448
|
i32.add
|
|
12191
|
-
local.set $i|
|
|
12192
|
-
br $for-loop|
|
|
12449
|
+
local.set $i|39
|
|
12450
|
+
br $for-loop|12
|
|
12193
12451
|
end
|
|
12194
12452
|
end
|
|
12195
|
-
local.get $j|
|
|
12453
|
+
local.get $j|35
|
|
12196
12454
|
i32.const 1
|
|
12197
12455
|
i32.add
|
|
12198
|
-
local.set $j|
|
|
12199
|
-
br $for-loop|
|
|
12456
|
+
local.set $j|35
|
|
12457
|
+
br $for-loop|10
|
|
12200
12458
|
end
|
|
12201
12459
|
end
|
|
12202
12460
|
local.get $k
|
|
12203
12461
|
i32.const 1
|
|
12204
12462
|
i32.add
|
|
12205
|
-
local.set $i|
|
|
12206
|
-
loop $for-loop|
|
|
12207
|
-
local.get $i|
|
|
12463
|
+
local.set $i|40
|
|
12464
|
+
loop $for-loop|13
|
|
12465
|
+
local.get $i|40
|
|
12208
12466
|
local.get $m
|
|
12209
12467
|
i32.lt_s
|
|
12210
12468
|
if
|
|
12211
12469
|
local.get $r_out
|
|
12212
|
-
local.get $i|
|
|
12470
|
+
local.get $i|40
|
|
12213
12471
|
local.get $n
|
|
12214
12472
|
i32.mul
|
|
12215
12473
|
local.get $k
|
|
12216
12474
|
i32.add
|
|
12217
12475
|
f64.const 0
|
|
12218
12476
|
call $~lib/typedarray/Float64Array#__set
|
|
12219
|
-
local.get $i|
|
|
12477
|
+
local.get $i|40
|
|
12220
12478
|
i32.const 1
|
|
12221
12479
|
i32.add
|
|
12222
|
-
local.set $i|
|
|
12223
|
-
br $for-loop|
|
|
12480
|
+
local.set $i|40
|
|
12481
|
+
br $for-loop|13
|
|
12224
12482
|
end
|
|
12225
12483
|
end
|
|
12226
12484
|
end
|
|
@@ -12333,12 +12591,12 @@
|
|
|
12333
12591
|
i32.mul
|
|
12334
12592
|
local.get $j
|
|
12335
12593
|
i32.add
|
|
12336
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
12594
|
+
block $~lib/math/NativeMath.sqrt|inlined.2 (result f64)
|
|
12337
12595
|
local.get $sum
|
|
12338
12596
|
local.set $x
|
|
12339
12597
|
local.get $x
|
|
12340
12598
|
f64.sqrt
|
|
12341
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
12599
|
+
br $~lib/math/NativeMath.sqrt|inlined.2
|
|
12342
12600
|
end
|
|
12343
12601
|
call $~lib/typedarray/Float64Array#__set
|
|
12344
12602
|
else
|
|
@@ -12499,9 +12757,9 @@
|
|
|
12499
12757
|
else
|
|
12500
12758
|
i32.const 12896
|
|
12501
12759
|
i32.const 13024
|
|
12502
|
-
i32.const
|
|
12760
|
+
i32.const 357
|
|
12503
12761
|
i32.const 10
|
|
12504
|
-
call
|
|
12762
|
+
call $src/abort/trapAbort
|
|
12505
12763
|
unreachable
|
|
12506
12764
|
end
|
|
12507
12765
|
local.get $i|8
|
|
@@ -12524,7 +12782,7 @@
|
|
|
12524
12782
|
i32.sub
|
|
12525
12783
|
i32.lt_s
|
|
12526
12784
|
if
|
|
12527
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
12785
|
+
block $~lib/math/NativeMath.abs|inlined.6 (result f64)
|
|
12528
12786
|
local.get $work
|
|
12529
12787
|
local.get $k
|
|
12530
12788
|
local.get $n
|
|
@@ -12535,7 +12793,7 @@
|
|
|
12535
12793
|
local.set $x
|
|
12536
12794
|
local.get $x
|
|
12537
12795
|
f64.abs
|
|
12538
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
12796
|
+
br $~lib/math/NativeMath.abs|inlined.6
|
|
12539
12797
|
end
|
|
12540
12798
|
local.set $maxVal
|
|
12541
12799
|
local.get $k
|
|
@@ -12549,7 +12807,7 @@
|
|
|
12549
12807
|
local.get $n
|
|
12550
12808
|
i32.lt_s
|
|
12551
12809
|
if
|
|
12552
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
12810
|
+
block $~lib/math/NativeMath.abs|inlined.7 (result f64)
|
|
12553
12811
|
local.get $work
|
|
12554
12812
|
local.get $i|14
|
|
12555
12813
|
local.get $n
|
|
@@ -12560,7 +12818,7 @@
|
|
|
12560
12818
|
local.set $x|15
|
|
12561
12819
|
local.get $x|15
|
|
12562
12820
|
f64.abs
|
|
12563
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
12821
|
+
br $~lib/math/NativeMath.abs|inlined.7
|
|
12564
12822
|
end
|
|
12565
12823
|
local.set $v
|
|
12566
12824
|
local.get $v
|
|
@@ -12579,9 +12837,12 @@
|
|
|
12579
12837
|
br $for-loop|3
|
|
12580
12838
|
end
|
|
12581
12839
|
end
|
|
12840
|
+
local.get $work
|
|
12841
|
+
local.get $n
|
|
12842
|
+
local.get $pivotRow
|
|
12843
|
+
local.get $k
|
|
12582
12844
|
local.get $maxVal
|
|
12583
|
-
|
|
12584
|
-
f64.lt
|
|
12845
|
+
call $src/algebra/decomposition/pivotIsZero
|
|
12585
12846
|
if
|
|
12586
12847
|
i32.const 0
|
|
12587
12848
|
local.set $i|17
|
|
@@ -12686,9 +12947,9 @@
|
|
|
12686
12947
|
else
|
|
12687
12948
|
i32.const 12896
|
|
12688
12949
|
i32.const 13024
|
|
12689
|
-
i32.const
|
|
12950
|
+
i32.const 388
|
|
12690
12951
|
i32.const 20
|
|
12691
|
-
call
|
|
12952
|
+
call $src/abort/trapAbort
|
|
12692
12953
|
unreachable
|
|
12693
12954
|
end
|
|
12694
12955
|
local.set $fb
|
|
@@ -12797,7 +13058,15 @@
|
|
|
12797
13058
|
br $for-loop|2
|
|
12798
13059
|
end
|
|
12799
13060
|
end
|
|
12800
|
-
|
|
13061
|
+
local.get $work
|
|
13062
|
+
local.get $n
|
|
13063
|
+
local.get $n
|
|
13064
|
+
i32.const 1
|
|
13065
|
+
i32.sub
|
|
13066
|
+
local.get $n
|
|
13067
|
+
i32.const 1
|
|
13068
|
+
i32.sub
|
|
13069
|
+
block $~lib/math/NativeMath.abs|inlined.8 (result f64)
|
|
12801
13070
|
local.get $work
|
|
12802
13071
|
local.get $n
|
|
12803
13072
|
i32.const 1
|
|
@@ -12812,10 +13081,9 @@
|
|
|
12812
13081
|
local.set $x|28
|
|
12813
13082
|
local.get $x|28
|
|
12814
13083
|
f64.abs
|
|
12815
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
13084
|
+
br $~lib/math/NativeMath.abs|inlined.8
|
|
12816
13085
|
end
|
|
12817
|
-
|
|
12818
|
-
f64.lt
|
|
13086
|
+
call $src/algebra/decomposition/pivotIsZero
|
|
12819
13087
|
if
|
|
12820
13088
|
i32.const 0
|
|
12821
13089
|
local.set $i|29
|
|
@@ -12870,9 +13138,9 @@
|
|
|
12870
13138
|
else
|
|
12871
13139
|
i32.const 12896
|
|
12872
13140
|
i32.const 13024
|
|
12873
|
-
i32.const
|
|
13141
|
+
i32.const 416
|
|
12874
13142
|
i32.const 61
|
|
12875
|
-
call
|
|
13143
|
+
call $src/abort/trapAbort
|
|
12876
13144
|
unreachable
|
|
12877
13145
|
end
|
|
12878
13146
|
local.get $i|31
|
|
@@ -13074,7 +13342,7 @@
|
|
|
13074
13342
|
i32.sub
|
|
13075
13343
|
i32.lt_s
|
|
13076
13344
|
if
|
|
13077
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
13345
|
+
block $~lib/math/NativeMath.abs|inlined.9 (result f64)
|
|
13078
13346
|
local.get $work
|
|
13079
13347
|
local.get $k
|
|
13080
13348
|
local.get $n
|
|
@@ -13085,7 +13353,7 @@
|
|
|
13085
13353
|
local.set $x
|
|
13086
13354
|
local.get $x
|
|
13087
13355
|
f64.abs
|
|
13088
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
13356
|
+
br $~lib/math/NativeMath.abs|inlined.9
|
|
13089
13357
|
end
|
|
13090
13358
|
local.set $maxVal
|
|
13091
13359
|
local.get $k
|
|
@@ -13099,7 +13367,7 @@
|
|
|
13099
13367
|
local.get $n
|
|
13100
13368
|
i32.lt_s
|
|
13101
13369
|
if
|
|
13102
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
13370
|
+
block $~lib/math/NativeMath.abs|inlined.10 (result f64)
|
|
13103
13371
|
local.get $work
|
|
13104
13372
|
local.get $i|9
|
|
13105
13373
|
local.get $n
|
|
@@ -13110,7 +13378,7 @@
|
|
|
13110
13378
|
local.set $x|10
|
|
13111
13379
|
local.get $x|10
|
|
13112
13380
|
f64.abs
|
|
13113
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
13381
|
+
br $~lib/math/NativeMath.abs|inlined.10
|
|
13114
13382
|
end
|
|
13115
13383
|
local.set $v
|
|
13116
13384
|
local.get $v
|
|
@@ -13129,9 +13397,12 @@
|
|
|
13129
13397
|
br $for-loop|2
|
|
13130
13398
|
end
|
|
13131
13399
|
end
|
|
13400
|
+
local.get $work
|
|
13401
|
+
local.get $n
|
|
13402
|
+
local.get $pivotRow
|
|
13403
|
+
local.get $k
|
|
13132
13404
|
local.get $maxVal
|
|
13133
|
-
|
|
13134
|
-
f64.lt
|
|
13405
|
+
call $src/algebra/decomposition/pivotIsZero
|
|
13135
13406
|
if
|
|
13136
13407
|
f64.const 0
|
|
13137
13408
|
return
|
|
@@ -13338,22 +13609,46 @@
|
|
|
13338
13609
|
return
|
|
13339
13610
|
)
|
|
13340
13611
|
(func $src/ops/special/chebyshevT (param $n f64) (param $x f64) (result f64)
|
|
13612
|
+
(local $nr f64)
|
|
13341
13613
|
(local $ni i32)
|
|
13342
13614
|
(local $prev f64)
|
|
13343
13615
|
(local $curr f64)
|
|
13344
13616
|
(local $k i32)
|
|
13345
13617
|
(local $next f64)
|
|
13346
13618
|
local.get $n
|
|
13619
|
+
local.get $n
|
|
13620
|
+
f64.sub
|
|
13621
|
+
f64.const 0
|
|
13622
|
+
f64.eq
|
|
13623
|
+
i32.eqz
|
|
13624
|
+
if
|
|
13625
|
+
f64.const nan:0x8000000000000
|
|
13626
|
+
return
|
|
13627
|
+
end
|
|
13628
|
+
local.get $n
|
|
13347
13629
|
call $~lib/math/NativeMath.round
|
|
13348
|
-
|
|
13349
|
-
local.
|
|
13350
|
-
|
|
13351
|
-
|
|
13352
|
-
i32.lt_s
|
|
13630
|
+
local.set $nr
|
|
13631
|
+
local.get $nr
|
|
13632
|
+
f64.const 0
|
|
13633
|
+
f64.lt
|
|
13353
13634
|
if
|
|
13354
13635
|
f64.const nan:0x8000000000000
|
|
13355
13636
|
return
|
|
13356
13637
|
end
|
|
13638
|
+
local.get $nr
|
|
13639
|
+
global.get $src/ops/special/_ORDER_MAX_I32
|
|
13640
|
+
f64.gt
|
|
13641
|
+
if
|
|
13642
|
+
i32.const 13104
|
|
13643
|
+
i32.const 13232
|
|
13644
|
+
i32.const 26
|
|
13645
|
+
i32.const 28
|
|
13646
|
+
call $src/abort/trapAbort
|
|
13647
|
+
unreachable
|
|
13648
|
+
end
|
|
13649
|
+
local.get $nr
|
|
13650
|
+
i32.trunc_sat_f64_s
|
|
13651
|
+
local.set $ni
|
|
13357
13652
|
local.get $ni
|
|
13358
13653
|
i32.const 0
|
|
13359
13654
|
i32.eq
|
|
@@ -13387,6 +13682,13 @@
|
|
|
13387
13682
|
local.get $prev
|
|
13388
13683
|
f64.sub
|
|
13389
13684
|
local.set $next
|
|
13685
|
+
local.get $next
|
|
13686
|
+
local.get $next
|
|
13687
|
+
f64.ne
|
|
13688
|
+
if
|
|
13689
|
+
f64.const nan:0x8000000000000
|
|
13690
|
+
return
|
|
13691
|
+
end
|
|
13390
13692
|
local.get $curr
|
|
13391
13693
|
local.set $prev
|
|
13392
13694
|
local.get $next
|
|
@@ -13402,22 +13704,46 @@
|
|
|
13402
13704
|
return
|
|
13403
13705
|
)
|
|
13404
13706
|
(func $src/ops/special/hermiteH (param $n f64) (param $x f64) (result f64)
|
|
13707
|
+
(local $nr f64)
|
|
13405
13708
|
(local $ni i32)
|
|
13406
13709
|
(local $prev f64)
|
|
13407
13710
|
(local $curr f64)
|
|
13408
13711
|
(local $k i32)
|
|
13409
13712
|
(local $next f64)
|
|
13410
13713
|
local.get $n
|
|
13714
|
+
local.get $n
|
|
13715
|
+
f64.sub
|
|
13716
|
+
f64.const 0
|
|
13717
|
+
f64.eq
|
|
13718
|
+
i32.eqz
|
|
13719
|
+
if
|
|
13720
|
+
f64.const nan:0x8000000000000
|
|
13721
|
+
return
|
|
13722
|
+
end
|
|
13723
|
+
local.get $n
|
|
13411
13724
|
call $~lib/math/NativeMath.round
|
|
13412
|
-
|
|
13413
|
-
local.
|
|
13414
|
-
|
|
13415
|
-
|
|
13416
|
-
i32.lt_s
|
|
13725
|
+
local.set $nr
|
|
13726
|
+
local.get $nr
|
|
13727
|
+
f64.const 0
|
|
13728
|
+
f64.lt
|
|
13417
13729
|
if
|
|
13418
13730
|
f64.const nan:0x8000000000000
|
|
13419
13731
|
return
|
|
13420
13732
|
end
|
|
13733
|
+
local.get $nr
|
|
13734
|
+
global.get $src/ops/special/_ORDER_MAX_I32
|
|
13735
|
+
f64.gt
|
|
13736
|
+
if
|
|
13737
|
+
i32.const 13296
|
|
13738
|
+
i32.const 13232
|
|
13739
|
+
i32.const 46
|
|
13740
|
+
i32.const 28
|
|
13741
|
+
call $src/abort/trapAbort
|
|
13742
|
+
unreachable
|
|
13743
|
+
end
|
|
13744
|
+
local.get $nr
|
|
13745
|
+
i32.trunc_sat_f64_s
|
|
13746
|
+
local.set $ni
|
|
13421
13747
|
local.get $ni
|
|
13422
13748
|
i32.const 0
|
|
13423
13749
|
i32.eq
|
|
@@ -13462,6 +13788,13 @@
|
|
|
13462
13788
|
f64.mul
|
|
13463
13789
|
f64.sub
|
|
13464
13790
|
local.set $next
|
|
13791
|
+
local.get $next
|
|
13792
|
+
local.get $next
|
|
13793
|
+
f64.ne
|
|
13794
|
+
if
|
|
13795
|
+
f64.const nan:0x8000000000000
|
|
13796
|
+
return
|
|
13797
|
+
end
|
|
13465
13798
|
local.get $curr
|
|
13466
13799
|
local.set $prev
|
|
13467
13800
|
local.get $next
|
|
@@ -13477,6 +13810,7 @@
|
|
|
13477
13810
|
return
|
|
13478
13811
|
)
|
|
13479
13812
|
(func $src/ops/special/laguerreL (param $n f64) (param $x f64) (result f64)
|
|
13813
|
+
(local $nr f64)
|
|
13480
13814
|
(local $ni i32)
|
|
13481
13815
|
(local $prev f64)
|
|
13482
13816
|
(local $curr f64)
|
|
@@ -13484,16 +13818,39 @@
|
|
|
13484
13818
|
(local $kf f64)
|
|
13485
13819
|
(local $next f64)
|
|
13486
13820
|
local.get $n
|
|
13821
|
+
local.get $n
|
|
13822
|
+
f64.sub
|
|
13823
|
+
f64.const 0
|
|
13824
|
+
f64.eq
|
|
13825
|
+
i32.eqz
|
|
13826
|
+
if
|
|
13827
|
+
f64.const nan:0x8000000000000
|
|
13828
|
+
return
|
|
13829
|
+
end
|
|
13830
|
+
local.get $n
|
|
13487
13831
|
call $~lib/math/NativeMath.round
|
|
13488
|
-
|
|
13489
|
-
local.
|
|
13490
|
-
|
|
13491
|
-
|
|
13492
|
-
i32.lt_s
|
|
13832
|
+
local.set $nr
|
|
13833
|
+
local.get $nr
|
|
13834
|
+
f64.const 0
|
|
13835
|
+
f64.lt
|
|
13493
13836
|
if
|
|
13494
13837
|
f64.const nan:0x8000000000000
|
|
13495
13838
|
return
|
|
13496
13839
|
end
|
|
13840
|
+
local.get $nr
|
|
13841
|
+
global.get $src/ops/special/_ORDER_MAX_LAGUERRE
|
|
13842
|
+
f64.gt
|
|
13843
|
+
if
|
|
13844
|
+
i32.const 13408
|
|
13845
|
+
i32.const 13232
|
|
13846
|
+
i32.const 66
|
|
13847
|
+
i32.const 33
|
|
13848
|
+
call $src/abort/trapAbort
|
|
13849
|
+
unreachable
|
|
13850
|
+
end
|
|
13851
|
+
local.get $nr
|
|
13852
|
+
i32.trunc_sat_f64_s
|
|
13853
|
+
local.set $ni
|
|
13497
13854
|
local.get $ni
|
|
13498
13855
|
i32.const 0
|
|
13499
13856
|
i32.eq
|
|
@@ -13544,6 +13901,13 @@
|
|
|
13544
13901
|
local.get $kf
|
|
13545
13902
|
f64.div
|
|
13546
13903
|
local.set $next
|
|
13904
|
+
local.get $next
|
|
13905
|
+
local.get $next
|
|
13906
|
+
f64.ne
|
|
13907
|
+
if
|
|
13908
|
+
f64.const nan:0x8000000000000
|
|
13909
|
+
return
|
|
13910
|
+
end
|
|
13547
13911
|
local.get $curr
|
|
13548
13912
|
local.set $prev
|
|
13549
13913
|
local.get $next
|
|
@@ -13559,6 +13923,7 @@
|
|
|
13559
13923
|
return
|
|
13560
13924
|
)
|
|
13561
13925
|
(func $src/ops/special/legendreP (param $n f64) (param $x f64) (result f64)
|
|
13926
|
+
(local $nr f64)
|
|
13562
13927
|
(local $ni i32)
|
|
13563
13928
|
(local $prev f64)
|
|
13564
13929
|
(local $curr f64)
|
|
@@ -13566,16 +13931,39 @@
|
|
|
13566
13931
|
(local $kf f64)
|
|
13567
13932
|
(local $next f64)
|
|
13568
13933
|
local.get $n
|
|
13934
|
+
local.get $n
|
|
13935
|
+
f64.sub
|
|
13936
|
+
f64.const 0
|
|
13937
|
+
f64.eq
|
|
13938
|
+
i32.eqz
|
|
13939
|
+
if
|
|
13940
|
+
f64.const nan:0x8000000000000
|
|
13941
|
+
return
|
|
13942
|
+
end
|
|
13943
|
+
local.get $n
|
|
13569
13944
|
call $~lib/math/NativeMath.round
|
|
13570
|
-
|
|
13571
|
-
local.
|
|
13572
|
-
|
|
13573
|
-
|
|
13574
|
-
i32.lt_s
|
|
13945
|
+
local.set $nr
|
|
13946
|
+
local.get $nr
|
|
13947
|
+
f64.const 0
|
|
13948
|
+
f64.lt
|
|
13575
13949
|
if
|
|
13576
13950
|
f64.const nan:0x8000000000000
|
|
13577
13951
|
return
|
|
13578
13952
|
end
|
|
13953
|
+
local.get $nr
|
|
13954
|
+
global.get $src/ops/special/_ORDER_MAX_I32
|
|
13955
|
+
f64.gt
|
|
13956
|
+
if
|
|
13957
|
+
i32.const 13520
|
|
13958
|
+
i32.const 13232
|
|
13959
|
+
i32.const 87
|
|
13960
|
+
i32.const 28
|
|
13961
|
+
call $src/abort/trapAbort
|
|
13962
|
+
unreachable
|
|
13963
|
+
end
|
|
13964
|
+
local.get $nr
|
|
13965
|
+
i32.trunc_sat_f64_s
|
|
13966
|
+
local.set $ni
|
|
13579
13967
|
local.get $ni
|
|
13580
13968
|
i32.const 0
|
|
13581
13969
|
i32.eq
|
|
@@ -13622,6 +14010,13 @@
|
|
|
13622
14010
|
local.get $kf
|
|
13623
14011
|
f64.div
|
|
13624
14012
|
local.set $next
|
|
14013
|
+
local.get $next
|
|
14014
|
+
local.get $next
|
|
14015
|
+
f64.ne
|
|
14016
|
+
if
|
|
14017
|
+
f64.const nan:0x8000000000000
|
|
14018
|
+
return
|
|
14019
|
+
end
|
|
13625
14020
|
local.get $curr
|
|
13626
14021
|
local.set $prev
|
|
13627
14022
|
local.get $next
|
|
@@ -13646,12 +14041,12 @@
|
|
|
13646
14041
|
(local $x|7 f64)
|
|
13647
14042
|
(local $x|8 f64)
|
|
13648
14043
|
f64.const 2
|
|
13649
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
14044
|
+
block $~lib/math/NativeMath.sqrt|inlined.3 (result f64)
|
|
13650
14045
|
global.get $~lib/math/NativeMath.PI
|
|
13651
14046
|
local.set $x|1
|
|
13652
14047
|
local.get $x|1
|
|
13653
14048
|
f64.sqrt
|
|
13654
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
14049
|
+
br $~lib/math/NativeMath.sqrt|inlined.3
|
|
13655
14050
|
end
|
|
13656
14051
|
f64.div
|
|
13657
14052
|
local.set $c
|
|
@@ -13690,7 +14085,7 @@
|
|
|
13690
14085
|
f64.div
|
|
13691
14086
|
f64.mul
|
|
13692
14087
|
local.set $term
|
|
13693
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
14088
|
+
block $~lib/math/NativeMath.abs|inlined.11 (result f64)
|
|
13694
14089
|
local.get $term
|
|
13695
14090
|
f64.const 2
|
|
13696
14091
|
local.get $nf
|
|
@@ -13701,14 +14096,14 @@
|
|
|
13701
14096
|
local.set $x|7
|
|
13702
14097
|
local.get $x|7
|
|
13703
14098
|
f64.abs
|
|
13704
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
14099
|
+
br $~lib/math/NativeMath.abs|inlined.11
|
|
13705
14100
|
end
|
|
13706
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
14101
|
+
block $~lib/math/NativeMath.abs|inlined.12 (result f64)
|
|
13707
14102
|
local.get $sum
|
|
13708
14103
|
local.set $x|8
|
|
13709
14104
|
local.get $x|8
|
|
13710
14105
|
f64.abs
|
|
13711
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
14106
|
+
br $~lib/math/NativeMath.abs|inlined.12
|
|
13712
14107
|
end
|
|
13713
14108
|
f64.const 1e-15
|
|
13714
14109
|
f64.mul
|
|
@@ -13750,12 +14145,12 @@
|
|
|
13750
14145
|
f64.neg
|
|
13751
14146
|
return
|
|
13752
14147
|
end
|
|
13753
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
14148
|
+
block $~lib/math/NativeMath.abs|inlined.13 (result f64)
|
|
13754
14149
|
local.get $x
|
|
13755
14150
|
local.set $x|1
|
|
13756
14151
|
local.get $x|1
|
|
13757
14152
|
f64.abs
|
|
13758
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
14153
|
+
br $~lib/math/NativeMath.abs|inlined.13
|
|
13759
14154
|
end
|
|
13760
14155
|
f64.const 40
|
|
13761
14156
|
f64.le
|
|
@@ -13787,21 +14182,21 @@
|
|
|
13787
14182
|
f64.div
|
|
13788
14183
|
f64.add
|
|
13789
14184
|
local.set $sum
|
|
13790
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
14185
|
+
block $~lib/math/NativeMath.abs|inlined.14 (result f64)
|
|
13791
14186
|
local.get $term
|
|
13792
14187
|
local.get $nf
|
|
13793
14188
|
f64.div
|
|
13794
14189
|
local.set $x|6
|
|
13795
14190
|
local.get $x|6
|
|
13796
14191
|
f64.abs
|
|
13797
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
14192
|
+
br $~lib/math/NativeMath.abs|inlined.14
|
|
13798
14193
|
end
|
|
13799
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
14194
|
+
block $~lib/math/NativeMath.abs|inlined.15 (result f64)
|
|
13800
14195
|
local.get $sum
|
|
13801
14196
|
local.set $x|7
|
|
13802
14197
|
local.get $x|7
|
|
13803
14198
|
f64.abs
|
|
13804
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
14199
|
+
br $~lib/math/NativeMath.abs|inlined.15
|
|
13805
14200
|
end
|
|
13806
14201
|
f64.const 1e-15
|
|
13807
14202
|
f64.mul
|
|
@@ -13818,12 +14213,12 @@
|
|
|
13818
14213
|
end
|
|
13819
14214
|
end
|
|
13820
14215
|
global.get $src/ops/special/EULER
|
|
13821
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
14216
|
+
block $~lib/math/NativeMath.abs|inlined.16 (result f64)
|
|
13822
14217
|
local.get $x
|
|
13823
14218
|
local.set $x|8
|
|
13824
14219
|
local.get $x|8
|
|
13825
14220
|
f64.abs
|
|
13826
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
14221
|
+
br $~lib/math/NativeMath.abs|inlined.16
|
|
13827
14222
|
end
|
|
13828
14223
|
call $~lib/math/NativeMath.log
|
|
13829
14224
|
f64.add
|
|
@@ -13854,12 +14249,12 @@
|
|
|
13854
14249
|
local.get $term|10
|
|
13855
14250
|
f64.add
|
|
13856
14251
|
local.set $sum|9
|
|
13857
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
14252
|
+
block $~lib/math/NativeMath.abs|inlined.17 (result f64)
|
|
13858
14253
|
local.get $term|10
|
|
13859
14254
|
local.set $x|12
|
|
13860
14255
|
local.get $x|12
|
|
13861
14256
|
f64.abs
|
|
13862
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
14257
|
+
br $~lib/math/NativeMath.abs|inlined.17
|
|
13863
14258
|
end
|
|
13864
14259
|
f64.const 1e-15
|
|
13865
14260
|
f64.lt
|
|
@@ -13907,12 +14302,12 @@
|
|
|
13907
14302
|
f64.const 1
|
|
13908
14303
|
end
|
|
13909
14304
|
local.set $sign
|
|
13910
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
14305
|
+
block $~lib/math/NativeMath.abs|inlined.18 (result f64)
|
|
13911
14306
|
local.get $x
|
|
13912
14307
|
local.set $x|2
|
|
13913
14308
|
local.get $x|2
|
|
13914
14309
|
f64.abs
|
|
13915
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
14310
|
+
br $~lib/math/NativeMath.abs|inlined.18
|
|
13916
14311
|
end
|
|
13917
14312
|
local.set $ax
|
|
13918
14313
|
f64.const 0
|
|
@@ -13959,7 +14354,7 @@
|
|
|
13959
14354
|
f64.div
|
|
13960
14355
|
f64.mul
|
|
13961
14356
|
local.set $term
|
|
13962
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
14357
|
+
block $~lib/math/NativeMath.abs|inlined.19 (result f64)
|
|
13963
14358
|
local.get $term
|
|
13964
14359
|
f64.const 2
|
|
13965
14360
|
local.get $nf
|
|
@@ -13970,7 +14365,7 @@
|
|
|
13970
14365
|
local.set $x|8
|
|
13971
14366
|
local.get $x|8
|
|
13972
14367
|
f64.abs
|
|
13973
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
14368
|
+
br $~lib/math/NativeMath.abs|inlined.19
|
|
13974
14369
|
end
|
|
13975
14370
|
f64.const 1e-15
|
|
13976
14371
|
f64.lt
|
|
@@ -14056,7 +14451,7 @@
|
|
|
14056
14451
|
f64.div
|
|
14057
14452
|
f64.add
|
|
14058
14453
|
local.set $sum
|
|
14059
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
14454
|
+
block $~lib/math/NativeMath.abs|inlined.20 (result f64)
|
|
14060
14455
|
local.get $term
|
|
14061
14456
|
f64.const 2
|
|
14062
14457
|
local.get $nf
|
|
@@ -14065,7 +14460,7 @@
|
|
|
14065
14460
|
local.set $x|5
|
|
14066
14461
|
local.get $x|5
|
|
14067
14462
|
f64.abs
|
|
14068
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
14463
|
+
br $~lib/math/NativeMath.abs|inlined.20
|
|
14069
14464
|
end
|
|
14070
14465
|
f64.const 1e-16
|
|
14071
14466
|
f64.lt
|
|
@@ -14149,22 +14544,22 @@
|
|
|
14149
14544
|
local.get $gTerm
|
|
14150
14545
|
f64.add
|
|
14151
14546
|
local.set $g
|
|
14152
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
14547
|
+
block $~lib/math/NativeMath.abs|inlined.21 (result f64)
|
|
14153
14548
|
local.get $fTerm
|
|
14154
14549
|
local.set $x|13
|
|
14155
14550
|
local.get $x|13
|
|
14156
14551
|
f64.abs
|
|
14157
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
14552
|
+
br $~lib/math/NativeMath.abs|inlined.21
|
|
14158
14553
|
end
|
|
14159
14554
|
f64.const 1e-17
|
|
14160
14555
|
f64.lt
|
|
14161
14556
|
if (result i32)
|
|
14162
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
14557
|
+
block $~lib/math/NativeMath.abs|inlined.22 (result f64)
|
|
14163
14558
|
local.get $gTerm
|
|
14164
14559
|
local.set $x|14
|
|
14165
14560
|
local.get $x|14
|
|
14166
14561
|
f64.abs
|
|
14167
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
14562
|
+
br $~lib/math/NativeMath.abs|inlined.22
|
|
14168
14563
|
end
|
|
14169
14564
|
f64.const 1e-17
|
|
14170
14565
|
f64.lt
|
|
@@ -15604,10 +15999,10 @@
|
|
|
15604
15999
|
i32.gt_u
|
|
15605
16000
|
if
|
|
15606
16001
|
i32.const 12656
|
|
15607
|
-
i32.const
|
|
16002
|
+
i32.const 13632
|
|
15608
16003
|
i32.const 70
|
|
15609
16004
|
i32.const 60
|
|
15610
|
-
call
|
|
16005
|
+
call $src/abort/trapAbort
|
|
15611
16006
|
unreachable
|
|
15612
16007
|
end
|
|
15613
16008
|
local.get $length
|
|
@@ -15685,7 +16080,7 @@
|
|
|
15685
16080
|
i32.const 96
|
|
15686
16081
|
i32.const 45
|
|
15687
16082
|
i32.const 3
|
|
15688
|
-
call
|
|
16083
|
+
call $src/abort/trapAbort
|
|
15689
16084
|
unreachable
|
|
15690
16085
|
end
|
|
15691
16086
|
local.get $ptr
|
|
@@ -15732,7 +16127,7 @@
|
|
|
15732
16127
|
i32.const 96
|
|
15733
16128
|
i32.const 52
|
|
15734
16129
|
i32.const 33
|
|
15735
|
-
call
|
|
16130
|
+
call $src/abort/trapAbort
|
|
15736
16131
|
unreachable
|
|
15737
16132
|
end
|
|
15738
16133
|
local.get $ptr
|
|
@@ -15790,7 +16185,7 @@
|
|
|
15790
16185
|
i32.const 96
|
|
15791
16186
|
i32.const 99
|
|
15792
16187
|
i32.const 30
|
|
15793
|
-
call
|
|
16188
|
+
call $src/abort/trapAbort
|
|
15794
16189
|
unreachable
|
|
15795
16190
|
end
|
|
15796
16191
|
local.get $oldPtr
|
|
@@ -15838,10 +16233,10 @@
|
|
|
15838
16233
|
i32.gt_u
|
|
15839
16234
|
if
|
|
15840
16235
|
i32.const 12656
|
|
15841
|
-
i32.const
|
|
16236
|
+
i32.const 13632
|
|
15842
16237
|
i32.const 19
|
|
15843
16238
|
i32.const 48
|
|
15844
|
-
call
|
|
16239
|
+
call $src/abort/trapAbort
|
|
15845
16240
|
unreachable
|
|
15846
16241
|
end
|
|
15847
16242
|
local.get $array
|
|
@@ -15930,10 +16325,10 @@
|
|
|
15930
16325
|
i32.lt_s
|
|
15931
16326
|
if
|
|
15932
16327
|
i32.const 12768
|
|
15933
|
-
i32.const
|
|
16328
|
+
i32.const 13632
|
|
15934
16329
|
i32.const 130
|
|
15935
16330
|
i32.const 22
|
|
15936
|
-
call
|
|
16331
|
+
call $src/abort/trapAbort
|
|
15937
16332
|
unreachable
|
|
15938
16333
|
end
|
|
15939
16334
|
local.get $this
|
|
@@ -16005,10 +16400,10 @@
|
|
|
16005
16400
|
i32.ge_u
|
|
16006
16401
|
if
|
|
16007
16402
|
i32.const 12768
|
|
16008
|
-
i32.const
|
|
16403
|
+
i32.const 13632
|
|
16009
16404
|
i32.const 114
|
|
16010
16405
|
i32.const 42
|
|
16011
|
-
call
|
|
16406
|
+
call $src/abort/trapAbort
|
|
16012
16407
|
unreachable
|
|
16013
16408
|
end
|
|
16014
16409
|
local.get $this
|
|
@@ -16435,10 +16830,10 @@
|
|
|
16435
16830
|
i32.gt_u
|
|
16436
16831
|
if
|
|
16437
16832
|
i32.const 12656
|
|
16438
|
-
i32.const
|
|
16833
|
+
i32.const 13632
|
|
16439
16834
|
i32.const 70
|
|
16440
16835
|
i32.const 60
|
|
16441
|
-
call
|
|
16836
|
+
call $src/abort/trapAbort
|
|
16442
16837
|
unreachable
|
|
16443
16838
|
end
|
|
16444
16839
|
local.get $length
|
|
@@ -16497,10 +16892,10 @@
|
|
|
16497
16892
|
i32.lt_s
|
|
16498
16893
|
if
|
|
16499
16894
|
i32.const 12768
|
|
16500
|
-
i32.const
|
|
16895
|
+
i32.const 13632
|
|
16501
16896
|
i32.const 130
|
|
16502
16897
|
i32.const 22
|
|
16503
|
-
call
|
|
16898
|
+
call $src/abort/trapAbort
|
|
16504
16899
|
unreachable
|
|
16505
16900
|
end
|
|
16506
16901
|
local.get $this
|
|
@@ -16732,10 +17127,10 @@
|
|
|
16732
17127
|
i32.ge_u
|
|
16733
17128
|
if
|
|
16734
17129
|
i32.const 12768
|
|
16735
|
-
i32.const
|
|
17130
|
+
i32.const 13632
|
|
16736
17131
|
i32.const 114
|
|
16737
17132
|
i32.const 42
|
|
16738
|
-
call
|
|
17133
|
+
call $src/abort/trapAbort
|
|
16739
17134
|
unreachable
|
|
16740
17135
|
end
|
|
16741
17136
|
local.get $this
|
|
@@ -16754,11 +17149,11 @@
|
|
|
16754
17149
|
local.get $value
|
|
16755
17150
|
i32.eqz
|
|
16756
17151
|
if
|
|
16757
|
-
i32.const
|
|
16758
|
-
i32.const
|
|
17152
|
+
i32.const 13680
|
|
17153
|
+
i32.const 13632
|
|
16759
17154
|
i32.const 118
|
|
16760
17155
|
i32.const 40
|
|
16761
|
-
call
|
|
17156
|
+
call $src/abort/trapAbort
|
|
16762
17157
|
unreachable
|
|
16763
17158
|
end
|
|
16764
17159
|
local.get $value
|
|
@@ -17097,7 +17492,7 @@
|
|
|
17097
17492
|
if
|
|
17098
17493
|
local.get $col
|
|
17099
17494
|
local.set $maxRow
|
|
17100
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
17495
|
+
block $~lib/math/NativeMath.abs|inlined.23 (result f64)
|
|
17101
17496
|
local.get $m
|
|
17102
17497
|
local.get $col
|
|
17103
17498
|
local.get $n
|
|
@@ -17108,7 +17503,7 @@
|
|
|
17108
17503
|
local.set $x
|
|
17109
17504
|
local.get $x
|
|
17110
17505
|
f64.abs
|
|
17111
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
17506
|
+
br $~lib/math/NativeMath.abs|inlined.23
|
|
17112
17507
|
end
|
|
17113
17508
|
local.set $maxVal
|
|
17114
17509
|
local.get $col
|
|
@@ -17120,7 +17515,7 @@
|
|
|
17120
17515
|
local.get $n
|
|
17121
17516
|
i32.lt_s
|
|
17122
17517
|
if
|
|
17123
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
17518
|
+
block $~lib/math/NativeMath.abs|inlined.24 (result f64)
|
|
17124
17519
|
local.get $m
|
|
17125
17520
|
local.get $row
|
|
17126
17521
|
local.get $n
|
|
@@ -17131,7 +17526,7 @@
|
|
|
17131
17526
|
local.set $x|8
|
|
17132
17527
|
local.get $x|8
|
|
17133
17528
|
f64.abs
|
|
17134
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
17529
|
+
br $~lib/math/NativeMath.abs|inlined.24
|
|
17135
17530
|
end
|
|
17136
17531
|
local.set $v
|
|
17137
17532
|
local.get $v
|
|
@@ -18074,7 +18469,7 @@
|
|
|
18074
18469
|
i32.eq
|
|
18075
18470
|
if
|
|
18076
18471
|
f64.const 1
|
|
18077
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
18472
|
+
block $~lib/math/NativeMath.abs|inlined.25 (result f64)
|
|
18078
18473
|
f64.const 2
|
|
18079
18474
|
local.get $fi
|
|
18080
18475
|
f64.mul
|
|
@@ -18085,7 +18480,7 @@
|
|
|
18085
18480
|
local.set $x
|
|
18086
18481
|
local.get $x
|
|
18087
18482
|
f64.abs
|
|
18088
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
18483
|
+
br $~lib/math/NativeMath.abs|inlined.25
|
|
18089
18484
|
end
|
|
18090
18485
|
f64.sub
|
|
18091
18486
|
local.set $v
|
|
@@ -18642,6 +19037,19 @@
|
|
|
18642
19037
|
return
|
|
18643
19038
|
end
|
|
18644
19039
|
local.get $frameLength
|
|
19040
|
+
local.get $frameLength
|
|
19041
|
+
i32.const 1
|
|
19042
|
+
i32.sub
|
|
19043
|
+
i32.and
|
|
19044
|
+
i32.const 0
|
|
19045
|
+
i32.ne
|
|
19046
|
+
if
|
|
19047
|
+
i32.const 0
|
|
19048
|
+
i32.const 0
|
|
19049
|
+
call $~lib/typedarray/Float64Array#constructor
|
|
19050
|
+
return
|
|
19051
|
+
end
|
|
19052
|
+
local.get $frameLength
|
|
18645
19053
|
i32.const 2
|
|
18646
19054
|
i32.div_s
|
|
18647
19055
|
i32.const 1
|
|
@@ -19572,7 +19980,7 @@
|
|
|
19572
19980
|
end
|
|
19573
19981
|
local.get $pivotRow
|
|
19574
19982
|
local.set $maxRow
|
|
19575
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
19983
|
+
block $~lib/math/NativeMath.abs|inlined.26 (result f64)
|
|
19576
19984
|
local.get $out
|
|
19577
19985
|
local.get $pivotRow
|
|
19578
19986
|
local.get $n
|
|
@@ -19583,7 +19991,7 @@
|
|
|
19583
19991
|
local.set $x
|
|
19584
19992
|
local.get $x
|
|
19585
19993
|
f64.abs
|
|
19586
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
19994
|
+
br $~lib/math/NativeMath.abs|inlined.26
|
|
19587
19995
|
end
|
|
19588
19996
|
local.set $maxVal
|
|
19589
19997
|
local.get $pivotRow
|
|
@@ -19595,7 +20003,7 @@
|
|
|
19595
20003
|
local.get $m
|
|
19596
20004
|
i32.lt_s
|
|
19597
20005
|
if
|
|
19598
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
20006
|
+
block $~lib/math/NativeMath.abs|inlined.27 (result f64)
|
|
19599
20007
|
local.get $out
|
|
19600
20008
|
local.get $row
|
|
19601
20009
|
local.get $n
|
|
@@ -19606,7 +20014,7 @@
|
|
|
19606
20014
|
local.set $x|12
|
|
19607
20015
|
local.get $x|12
|
|
19608
20016
|
f64.abs
|
|
19609
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
20017
|
+
br $~lib/math/NativeMath.abs|inlined.27
|
|
19610
20018
|
end
|
|
19611
20019
|
local.set $v
|
|
19612
20020
|
local.get $v
|
|
@@ -19740,12 +20148,12 @@
|
|
|
19740
20148
|
i32.add
|
|
19741
20149
|
call $~lib/typedarray/Float64Array#__get
|
|
19742
20150
|
local.set $factor
|
|
19743
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
20151
|
+
block $~lib/math/NativeMath.abs|inlined.28 (result f64)
|
|
19744
20152
|
local.get $factor
|
|
19745
20153
|
local.set $x|20
|
|
19746
20154
|
local.get $x|20
|
|
19747
20155
|
f64.abs
|
|
19748
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
20156
|
+
br $~lib/math/NativeMath.abs|inlined.28
|
|
19749
20157
|
end
|
|
19750
20158
|
local.get $tol
|
|
19751
20159
|
f64.lt
|
|
@@ -19820,14 +20228,14 @@
|
|
|
19820
20228
|
i32.mul
|
|
19821
20229
|
i32.lt_s
|
|
19822
20230
|
if
|
|
19823
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
20231
|
+
block $~lib/math/NativeMath.abs|inlined.29 (result f64)
|
|
19824
20232
|
local.get $out
|
|
19825
20233
|
local.get $i|22
|
|
19826
20234
|
call $~lib/typedarray/Float64Array#__get
|
|
19827
20235
|
local.set $x|23
|
|
19828
20236
|
local.get $x|23
|
|
19829
20237
|
f64.abs
|
|
19830
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
20238
|
+
br $~lib/math/NativeMath.abs|inlined.29
|
|
19831
20239
|
end
|
|
19832
20240
|
local.get $tol
|
|
19833
20241
|
f64.lt
|
|
@@ -20170,14 +20578,14 @@
|
|
|
20170
20578
|
local.get $n
|
|
20171
20579
|
i32.lt_s
|
|
20172
20580
|
if
|
|
20173
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
20581
|
+
block $~lib/math/NativeMath.abs|inlined.30 (result f64)
|
|
20174
20582
|
local.get $ys
|
|
20175
20583
|
local.get $i
|
|
20176
20584
|
call $~lib/typedarray/Float64Array#__get
|
|
20177
20585
|
local.set $x
|
|
20178
20586
|
local.get $x
|
|
20179
20587
|
f64.abs
|
|
20180
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
20588
|
+
br $~lib/math/NativeMath.abs|inlined.30
|
|
20181
20589
|
end
|
|
20182
20590
|
local.set $absy
|
|
20183
20591
|
local.get $absy
|
|
@@ -20771,7 +21179,7 @@
|
|
|
20771
21179
|
local.get $n
|
|
20772
21180
|
i32.lt_s
|
|
20773
21181
|
if
|
|
20774
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
21182
|
+
block $~lib/math/NativeMath.abs|inlined.31 (result f64)
|
|
20775
21183
|
local.get $xNew
|
|
20776
21184
|
local.get $i|22
|
|
20777
21185
|
call $~lib/typedarray/Float64Array#__get
|
|
@@ -20782,7 +21190,7 @@
|
|
|
20782
21190
|
local.set $x|23
|
|
20783
21191
|
local.get $x|23
|
|
20784
21192
|
f64.abs
|
|
20785
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
21193
|
+
br $~lib/math/NativeMath.abs|inlined.31
|
|
20786
21194
|
end
|
|
20787
21195
|
local.set $d
|
|
20788
21196
|
local.get $d
|
|
@@ -21234,7 +21642,7 @@
|
|
|
21234
21642
|
local.get $rows
|
|
21235
21643
|
i32.lt_s
|
|
21236
21644
|
if
|
|
21237
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
21645
|
+
block $~lib/math/NativeMath.abs|inlined.32 (result f64)
|
|
21238
21646
|
local.get $t
|
|
21239
21647
|
local.get $i|30
|
|
21240
21648
|
local.get $cols
|
|
@@ -21247,7 +21655,7 @@
|
|
|
21247
21655
|
local.set $x|31
|
|
21248
21656
|
local.get $x|31
|
|
21249
21657
|
f64.abs
|
|
21250
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
21658
|
+
br $~lib/math/NativeMath.abs|inlined.32
|
|
21251
21659
|
end
|
|
21252
21660
|
f64.const 1e-10
|
|
21253
21661
|
f64.lt
|
|
@@ -21263,7 +21671,7 @@
|
|
|
21263
21671
|
local.get $i|30
|
|
21264
21672
|
local.set $basicRow
|
|
21265
21673
|
else
|
|
21266
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
21674
|
+
block $~lib/math/NativeMath.abs|inlined.33 (result f64)
|
|
21267
21675
|
local.get $t
|
|
21268
21676
|
local.get $i|30
|
|
21269
21677
|
local.get $cols
|
|
@@ -21274,7 +21682,7 @@
|
|
|
21274
21682
|
local.set $x|32
|
|
21275
21683
|
local.get $x|32
|
|
21276
21684
|
f64.abs
|
|
21277
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
21685
|
+
br $~lib/math/NativeMath.abs|inlined.33
|
|
21278
21686
|
end
|
|
21279
21687
|
f64.const 1e-10
|
|
21280
21688
|
f64.gt
|
|
@@ -21422,7 +21830,7 @@
|
|
|
21422
21830
|
end
|
|
21423
21831
|
local.get $r
|
|
21424
21832
|
local.set $maxRow
|
|
21425
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
21833
|
+
block $~lib/math/NativeMath.abs|inlined.34 (result f64)
|
|
21426
21834
|
local.get $mm
|
|
21427
21835
|
local.get $r
|
|
21428
21836
|
local.get $n
|
|
@@ -21433,7 +21841,7 @@
|
|
|
21433
21841
|
local.set $x
|
|
21434
21842
|
local.get $x
|
|
21435
21843
|
f64.abs
|
|
21436
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
21844
|
+
br $~lib/math/NativeMath.abs|inlined.34
|
|
21437
21845
|
end
|
|
21438
21846
|
local.set $maxVal
|
|
21439
21847
|
local.get $r
|
|
@@ -21445,7 +21853,7 @@
|
|
|
21445
21853
|
local.get $m
|
|
21446
21854
|
i32.lt_s
|
|
21447
21855
|
if
|
|
21448
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
21856
|
+
block $~lib/math/NativeMath.abs|inlined.35 (result f64)
|
|
21449
21857
|
local.get $mm
|
|
21450
21858
|
local.get $row
|
|
21451
21859
|
local.get $n
|
|
@@ -21456,7 +21864,7 @@
|
|
|
21456
21864
|
local.set $x|13
|
|
21457
21865
|
local.get $x|13
|
|
21458
21866
|
f64.abs
|
|
21459
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
21867
|
+
br $~lib/math/NativeMath.abs|inlined.35
|
|
21460
21868
|
end
|
|
21461
21869
|
local.set $v
|
|
21462
21870
|
local.get $v
|
|
@@ -21579,7 +21987,7 @@
|
|
|
21579
21987
|
local.get $r
|
|
21580
21988
|
i32.ne
|
|
21581
21989
|
if (result i32)
|
|
21582
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
21990
|
+
block $~lib/math/NativeMath.abs|inlined.36 (result f64)
|
|
21583
21991
|
local.get $mm
|
|
21584
21992
|
local.get $row|19
|
|
21585
21993
|
local.get $n
|
|
@@ -21590,7 +21998,7 @@
|
|
|
21590
21998
|
local.set $x|20
|
|
21591
21999
|
local.get $x|20
|
|
21592
22000
|
f64.abs
|
|
21593
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
22001
|
+
br $~lib/math/NativeMath.abs|inlined.36
|
|
21594
22002
|
end
|
|
21595
22003
|
f64.const 1e-15
|
|
21596
22004
|
f64.gt
|
|
@@ -22128,14 +22536,14 @@
|
|
|
22128
22536
|
local.get $n
|
|
22129
22537
|
i32.lt_s
|
|
22130
22538
|
if
|
|
22131
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
22539
|
+
block $~lib/math/NativeMath.abs|inlined.37 (result f64)
|
|
22132
22540
|
local.get $im
|
|
22133
22541
|
local.get $i|25
|
|
22134
22542
|
call $~lib/typedarray/Float64Array#__get
|
|
22135
22543
|
local.set $x
|
|
22136
22544
|
local.get $x
|
|
22137
22545
|
f64.abs
|
|
22138
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
22546
|
+
br $~lib/math/NativeMath.abs|inlined.37
|
|
22139
22547
|
end
|
|
22140
22548
|
f64.const 1e-08
|
|
22141
22549
|
f64.lt
|
|
@@ -22387,7 +22795,7 @@
|
|
|
22387
22795
|
if
|
|
22388
22796
|
local.get $col
|
|
22389
22797
|
local.set $maxRow
|
|
22390
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
22798
|
+
block $~lib/math/NativeMath.abs|inlined.38 (result f64)
|
|
22391
22799
|
local.get $m
|
|
22392
22800
|
local.get $col
|
|
22393
22801
|
local.get $w
|
|
@@ -22398,7 +22806,7 @@
|
|
|
22398
22806
|
local.set $x
|
|
22399
22807
|
local.get $x
|
|
22400
22808
|
f64.abs
|
|
22401
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
22809
|
+
br $~lib/math/NativeMath.abs|inlined.38
|
|
22402
22810
|
end
|
|
22403
22811
|
local.set $maxVal
|
|
22404
22812
|
local.get $col
|
|
@@ -22410,7 +22818,7 @@
|
|
|
22410
22818
|
local.get $n
|
|
22411
22819
|
i32.lt_s
|
|
22412
22820
|
if
|
|
22413
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
22821
|
+
block $~lib/math/NativeMath.abs|inlined.39 (result f64)
|
|
22414
22822
|
local.get $m
|
|
22415
22823
|
local.get $row
|
|
22416
22824
|
local.get $w
|
|
@@ -22421,7 +22829,7 @@
|
|
|
22421
22829
|
local.set $x|12
|
|
22422
22830
|
local.get $x|12
|
|
22423
22831
|
f64.abs
|
|
22424
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
22832
|
+
br $~lib/math/NativeMath.abs|inlined.39
|
|
22425
22833
|
end
|
|
22426
22834
|
local.set $v
|
|
22427
22835
|
local.get $v
|
|
@@ -23497,19 +23905,212 @@
|
|
|
23497
23905
|
call $src/types/complex/Complex#reciprocal
|
|
23498
23906
|
return
|
|
23499
23907
|
)
|
|
23908
|
+
(func $~lib/math/NativeMath.hypot (param $x f64) (param $y f64) (result f64)
|
|
23909
|
+
(local $ux i64)
|
|
23910
|
+
(local $uy i64)
|
|
23911
|
+
(local $ut i64)
|
|
23912
|
+
(local $ex i32)
|
|
23913
|
+
(local $ey i32)
|
|
23914
|
+
(local $z f64)
|
|
23915
|
+
(local $c f64)
|
|
23916
|
+
(local $h f64)
|
|
23917
|
+
(local $l f64)
|
|
23918
|
+
(local $hx f64)
|
|
23919
|
+
(local $lx f64)
|
|
23920
|
+
(local $hy f64)
|
|
23921
|
+
(local $ly f64)
|
|
23922
|
+
local.get $x
|
|
23923
|
+
i64.reinterpret_f64
|
|
23924
|
+
local.set $ux
|
|
23925
|
+
local.get $y
|
|
23926
|
+
i64.reinterpret_f64
|
|
23927
|
+
local.set $uy
|
|
23928
|
+
local.get $ux
|
|
23929
|
+
i64.const 9223372036854775807
|
|
23930
|
+
i64.and
|
|
23931
|
+
local.set $ux
|
|
23932
|
+
local.get $uy
|
|
23933
|
+
i64.const 9223372036854775807
|
|
23934
|
+
i64.and
|
|
23935
|
+
local.set $uy
|
|
23936
|
+
local.get $ux
|
|
23937
|
+
local.get $uy
|
|
23938
|
+
i64.lt_u
|
|
23939
|
+
if
|
|
23940
|
+
local.get $ux
|
|
23941
|
+
local.set $ut
|
|
23942
|
+
local.get $uy
|
|
23943
|
+
local.set $ux
|
|
23944
|
+
local.get $ut
|
|
23945
|
+
local.set $uy
|
|
23946
|
+
end
|
|
23947
|
+
local.get $ux
|
|
23948
|
+
i64.const 52
|
|
23949
|
+
i64.shr_u
|
|
23950
|
+
i32.wrap_i64
|
|
23951
|
+
local.set $ex
|
|
23952
|
+
local.get $uy
|
|
23953
|
+
i64.const 52
|
|
23954
|
+
i64.shr_u
|
|
23955
|
+
i32.wrap_i64
|
|
23956
|
+
local.set $ey
|
|
23957
|
+
local.get $uy
|
|
23958
|
+
f64.reinterpret_i64
|
|
23959
|
+
local.set $y
|
|
23960
|
+
local.get $ey
|
|
23961
|
+
i32.const 2047
|
|
23962
|
+
i32.eq
|
|
23963
|
+
if
|
|
23964
|
+
local.get $y
|
|
23965
|
+
return
|
|
23966
|
+
end
|
|
23967
|
+
local.get $ux
|
|
23968
|
+
f64.reinterpret_i64
|
|
23969
|
+
local.set $x
|
|
23970
|
+
local.get $ex
|
|
23971
|
+
i32.const 2047
|
|
23972
|
+
i32.eq
|
|
23973
|
+
if (result i32)
|
|
23974
|
+
i32.const 1
|
|
23975
|
+
else
|
|
23976
|
+
local.get $uy
|
|
23977
|
+
i64.const 0
|
|
23978
|
+
i64.eq
|
|
23979
|
+
end
|
|
23980
|
+
if
|
|
23981
|
+
local.get $x
|
|
23982
|
+
return
|
|
23983
|
+
end
|
|
23984
|
+
local.get $ex
|
|
23985
|
+
local.get $ey
|
|
23986
|
+
i32.sub
|
|
23987
|
+
i32.const 64
|
|
23988
|
+
i32.gt_s
|
|
23989
|
+
if
|
|
23990
|
+
local.get $x
|
|
23991
|
+
local.get $y
|
|
23992
|
+
f64.add
|
|
23993
|
+
return
|
|
23994
|
+
end
|
|
23995
|
+
f64.const 1
|
|
23996
|
+
local.set $z
|
|
23997
|
+
local.get $ex
|
|
23998
|
+
i32.const 1023
|
|
23999
|
+
i32.const 510
|
|
24000
|
+
i32.add
|
|
24001
|
+
i32.gt_s
|
|
24002
|
+
if
|
|
24003
|
+
f64.const 5260135901548373507240989e186
|
|
24004
|
+
local.set $z
|
|
24005
|
+
local.get $x
|
|
24006
|
+
f64.const 1.90109156629516e-211
|
|
24007
|
+
f64.mul
|
|
24008
|
+
local.set $x
|
|
24009
|
+
local.get $y
|
|
24010
|
+
f64.const 1.90109156629516e-211
|
|
24011
|
+
f64.mul
|
|
24012
|
+
local.set $y
|
|
24013
|
+
else
|
|
24014
|
+
local.get $ey
|
|
24015
|
+
i32.const 1023
|
|
24016
|
+
i32.const 450
|
|
24017
|
+
i32.sub
|
|
24018
|
+
i32.lt_s
|
|
24019
|
+
if
|
|
24020
|
+
f64.const 1.90109156629516e-211
|
|
24021
|
+
local.set $z
|
|
24022
|
+
local.get $x
|
|
24023
|
+
f64.const 5260135901548373507240989e186
|
|
24024
|
+
f64.mul
|
|
24025
|
+
local.set $x
|
|
24026
|
+
local.get $y
|
|
24027
|
+
f64.const 5260135901548373507240989e186
|
|
24028
|
+
f64.mul
|
|
24029
|
+
local.set $y
|
|
24030
|
+
end
|
|
24031
|
+
end
|
|
24032
|
+
local.get $x
|
|
24033
|
+
f64.const 134217729
|
|
24034
|
+
f64.mul
|
|
24035
|
+
local.set $c
|
|
24036
|
+
local.get $x
|
|
24037
|
+
local.get $c
|
|
24038
|
+
f64.sub
|
|
24039
|
+
local.get $c
|
|
24040
|
+
f64.add
|
|
24041
|
+
local.set $h
|
|
24042
|
+
local.get $x
|
|
24043
|
+
local.get $h
|
|
24044
|
+
f64.sub
|
|
24045
|
+
local.set $l
|
|
24046
|
+
local.get $x
|
|
24047
|
+
local.get $x
|
|
24048
|
+
f64.mul
|
|
24049
|
+
local.set $hx
|
|
24050
|
+
local.get $h
|
|
24051
|
+
local.get $h
|
|
24052
|
+
f64.mul
|
|
24053
|
+
local.get $hx
|
|
24054
|
+
f64.sub
|
|
24055
|
+
f64.const 2
|
|
24056
|
+
local.get $h
|
|
24057
|
+
f64.mul
|
|
24058
|
+
local.get $l
|
|
24059
|
+
f64.add
|
|
24060
|
+
local.get $l
|
|
24061
|
+
f64.mul
|
|
24062
|
+
f64.add
|
|
24063
|
+
local.set $lx
|
|
24064
|
+
local.get $y
|
|
24065
|
+
f64.const 134217729
|
|
24066
|
+
f64.mul
|
|
24067
|
+
local.set $c
|
|
24068
|
+
local.get $y
|
|
24069
|
+
local.get $c
|
|
24070
|
+
f64.sub
|
|
24071
|
+
local.get $c
|
|
24072
|
+
f64.add
|
|
24073
|
+
local.set $h
|
|
24074
|
+
local.get $y
|
|
24075
|
+
local.get $h
|
|
24076
|
+
f64.sub
|
|
24077
|
+
local.set $l
|
|
24078
|
+
local.get $y
|
|
24079
|
+
local.get $y
|
|
24080
|
+
f64.mul
|
|
24081
|
+
local.set $hy
|
|
24082
|
+
local.get $h
|
|
24083
|
+
local.get $h
|
|
24084
|
+
f64.mul
|
|
24085
|
+
local.get $hy
|
|
24086
|
+
f64.sub
|
|
24087
|
+
f64.const 2
|
|
24088
|
+
local.get $h
|
|
24089
|
+
f64.mul
|
|
24090
|
+
local.get $l
|
|
24091
|
+
f64.add
|
|
24092
|
+
local.get $l
|
|
24093
|
+
f64.mul
|
|
24094
|
+
f64.add
|
|
24095
|
+
local.set $ly
|
|
24096
|
+
local.get $z
|
|
24097
|
+
local.get $ly
|
|
24098
|
+
local.get $lx
|
|
24099
|
+
f64.add
|
|
24100
|
+
local.get $hy
|
|
24101
|
+
f64.add
|
|
24102
|
+
local.get $hx
|
|
24103
|
+
f64.add
|
|
24104
|
+
f64.sqrt
|
|
24105
|
+
f64.mul
|
|
24106
|
+
return
|
|
24107
|
+
)
|
|
23500
24108
|
(func $src/types/complex/Complex#abs (param $this i32) (result f64)
|
|
23501
24109
|
local.get $this
|
|
23502
24110
|
call $src/types/complex/Complex#get:re
|
|
23503
24111
|
local.get $this
|
|
23504
|
-
call $src/types/complex/Complex#get:re
|
|
23505
|
-
f64.mul
|
|
23506
|
-
local.get $this
|
|
23507
24112
|
call $src/types/complex/Complex#get:im
|
|
23508
|
-
|
|
23509
|
-
call $src/types/complex/Complex#get:im
|
|
23510
|
-
f64.mul
|
|
23511
|
-
f64.add
|
|
23512
|
-
f64.sqrt
|
|
24113
|
+
call $~lib/math/NativeMath.hypot
|
|
23513
24114
|
return
|
|
23514
24115
|
)
|
|
23515
24116
|
(func $src/ops/complex-ops/complex_abs (param $a i32) (result f64)
|
|
@@ -25211,12 +25812,12 @@
|
|
|
25211
25812
|
br $for-loop|1
|
|
25212
25813
|
end
|
|
25213
25814
|
end
|
|
25214
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
25815
|
+
block $~lib/math/NativeMath.sqrt|inlined.4 (result f64)
|
|
25215
25816
|
local.get $norm2
|
|
25216
25817
|
local.set $x
|
|
25217
25818
|
local.get $x
|
|
25218
25819
|
f64.sqrt
|
|
25219
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
25820
|
+
br $~lib/math/NativeMath.sqrt|inlined.4
|
|
25220
25821
|
end
|
|
25221
25822
|
local.set $norm
|
|
25222
25823
|
local.get $norm
|
|
@@ -25592,12 +26193,12 @@
|
|
|
25592
26193
|
i32.add
|
|
25593
26194
|
call $~lib/typedarray/Float64Array#__get
|
|
25594
26195
|
local.set $r_ii
|
|
25595
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
26196
|
+
block $~lib/math/NativeMath.abs|inlined.40 (result f64)
|
|
25596
26197
|
local.get $r_ii
|
|
25597
26198
|
local.set $x|27
|
|
25598
26199
|
local.get $x|27
|
|
25599
26200
|
f64.abs
|
|
25600
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
26201
|
+
br $~lib/math/NativeMath.abs|inlined.40
|
|
25601
26202
|
end
|
|
25602
26203
|
f64.const 1e-12
|
|
25603
26204
|
f64.lt
|
|
@@ -26324,7 +26925,7 @@
|
|
|
26324
26925
|
if
|
|
26325
26926
|
local.get $col
|
|
26326
26927
|
local.set $maxRow
|
|
26327
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
26928
|
+
block $~lib/math/NativeMath.abs|inlined.41 (result f64)
|
|
26328
26929
|
local.get $m
|
|
26329
26930
|
local.get $col
|
|
26330
26931
|
local.get $n
|
|
@@ -26335,7 +26936,7 @@
|
|
|
26335
26936
|
local.set $x
|
|
26336
26937
|
local.get $x
|
|
26337
26938
|
f64.abs
|
|
26338
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
26939
|
+
br $~lib/math/NativeMath.abs|inlined.41
|
|
26339
26940
|
end
|
|
26340
26941
|
local.set $maxVal
|
|
26341
26942
|
local.get $col
|
|
@@ -26347,7 +26948,7 @@
|
|
|
26347
26948
|
local.get $n
|
|
26348
26949
|
i32.lt_s
|
|
26349
26950
|
if
|
|
26350
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
26951
|
+
block $~lib/math/NativeMath.abs|inlined.42 (result f64)
|
|
26351
26952
|
local.get $m
|
|
26352
26953
|
local.get $row
|
|
26353
26954
|
local.get $n
|
|
@@ -26358,7 +26959,7 @@
|
|
|
26358
26959
|
local.set $x|10
|
|
26359
26960
|
local.get $x|10
|
|
26360
26961
|
f64.abs
|
|
26361
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
26962
|
+
br $~lib/math/NativeMath.abs|inlined.42
|
|
26362
26963
|
end
|
|
26363
26964
|
local.set $v
|
|
26364
26965
|
local.get $v
|
|
@@ -27729,12 +28330,12 @@
|
|
|
27729
28330
|
(local $x|7 f64)
|
|
27730
28331
|
(local $x|8 f64)
|
|
27731
28332
|
f64.const 2
|
|
27732
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
28333
|
+
block $~lib/math/NativeMath.sqrt|inlined.5 (result f64)
|
|
27733
28334
|
global.get $~lib/math/NativeMath.PI
|
|
27734
28335
|
local.set $x
|
|
27735
28336
|
local.get $x
|
|
27736
28337
|
f64.sqrt
|
|
27737
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
28338
|
+
br $~lib/math/NativeMath.sqrt|inlined.5
|
|
27738
28339
|
end
|
|
27739
28340
|
f64.div
|
|
27740
28341
|
local.set $c
|
|
@@ -27773,19 +28374,19 @@
|
|
|
27773
28374
|
local.get $inc
|
|
27774
28375
|
f64.add
|
|
27775
28376
|
local.set $sum
|
|
27776
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
28377
|
+
block $~lib/math/NativeMath.abs|inlined.43 (result f64)
|
|
27777
28378
|
local.get $inc
|
|
27778
28379
|
local.set $x|7
|
|
27779
28380
|
local.get $x|7
|
|
27780
28381
|
f64.abs
|
|
27781
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
28382
|
+
br $~lib/math/NativeMath.abs|inlined.43
|
|
27782
28383
|
end
|
|
27783
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
28384
|
+
block $~lib/math/NativeMath.abs|inlined.44 (result f64)
|
|
27784
28385
|
local.get $sum
|
|
27785
28386
|
local.set $x|8
|
|
27786
28387
|
local.get $x|8
|
|
27787
28388
|
f64.abs
|
|
27788
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
28389
|
+
br $~lib/math/NativeMath.abs|inlined.44
|
|
27789
28390
|
end
|
|
27790
28391
|
f64.const 1e-17
|
|
27791
28392
|
f64.mul
|
|
@@ -27879,14 +28480,14 @@
|
|
|
27879
28480
|
local.get $delta
|
|
27880
28481
|
f64.mul
|
|
27881
28482
|
local.set $f
|
|
27882
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
28483
|
+
block $~lib/math/NativeMath.abs|inlined.45 (result f64)
|
|
27883
28484
|
local.get $delta
|
|
27884
28485
|
f64.const 1
|
|
27885
28486
|
f64.sub
|
|
27886
28487
|
local.set $x
|
|
27887
28488
|
local.get $x
|
|
27888
28489
|
f64.abs
|
|
27889
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
28490
|
+
br $~lib/math/NativeMath.abs|inlined.45
|
|
27890
28491
|
end
|
|
27891
28492
|
f64.const 1e-16
|
|
27892
28493
|
f64.lt
|
|
@@ -27906,12 +28507,12 @@
|
|
|
27906
28507
|
local.get $a
|
|
27907
28508
|
f64.mul
|
|
27908
28509
|
call $~lib/math/NativeMath.exp
|
|
27909
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
28510
|
+
block $~lib/math/NativeMath.sqrt|inlined.6 (result f64)
|
|
27910
28511
|
global.get $~lib/math/NativeMath.PI
|
|
27911
28512
|
local.set $x|8
|
|
27912
28513
|
local.get $x|8
|
|
27913
28514
|
f64.sqrt
|
|
27914
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
28515
|
+
br $~lib/math/NativeMath.sqrt|inlined.6
|
|
27915
28516
|
end
|
|
27916
28517
|
f64.div
|
|
27917
28518
|
local.get $f
|
|
@@ -28411,19 +29012,19 @@
|
|
|
28411
29012
|
local.get $term
|
|
28412
29013
|
f64.add
|
|
28413
29014
|
local.set $sum
|
|
28414
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
29015
|
+
block $~lib/math/NativeMath.abs|inlined.47 (result f64)
|
|
28415
29016
|
local.get $term
|
|
28416
29017
|
local.set $x|6
|
|
28417
29018
|
local.get $x|6
|
|
28418
29019
|
f64.abs
|
|
28419
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
29020
|
+
br $~lib/math/NativeMath.abs|inlined.47
|
|
28420
29021
|
end
|
|
28421
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
29022
|
+
block $~lib/math/NativeMath.abs|inlined.48 (result f64)
|
|
28422
29023
|
local.get $sum
|
|
28423
29024
|
local.set $x|7
|
|
28424
29025
|
local.get $x|7
|
|
28425
29026
|
f64.abs
|
|
28426
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
29027
|
+
br $~lib/math/NativeMath.abs|inlined.48
|
|
28427
29028
|
end
|
|
28428
29029
|
f64.const 1e-17
|
|
28429
29030
|
f64.mul
|
|
@@ -28511,12 +29112,12 @@
|
|
|
28511
29112
|
local.get $xk
|
|
28512
29113
|
f64.div
|
|
28513
29114
|
local.set $t
|
|
28514
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
29115
|
+
block $~lib/math/NativeMath.abs|inlined.49 (result f64)
|
|
28515
29116
|
local.get $t
|
|
28516
29117
|
local.set $x|12
|
|
28517
29118
|
local.get $x|12
|
|
28518
29119
|
f64.abs
|
|
28519
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
29120
|
+
br $~lib/math/NativeMath.abs|inlined.49
|
|
28520
29121
|
end
|
|
28521
29122
|
local.set $mag
|
|
28522
29123
|
local.get $mag
|
|
@@ -28585,7 +29186,7 @@
|
|
|
28585
29186
|
f64.mul
|
|
28586
29187
|
f64.sub
|
|
28587
29188
|
local.set $chi
|
|
28588
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
29189
|
+
block $~lib/math/NativeMath.sqrt|inlined.7 (result f64)
|
|
28589
29190
|
f64.const 2
|
|
28590
29191
|
global.get $~lib/math/NativeMath.PI
|
|
28591
29192
|
local.get $x
|
|
@@ -28594,7 +29195,7 @@
|
|
|
28594
29195
|
local.set $x|17
|
|
28595
29196
|
local.get $x|17
|
|
28596
29197
|
f64.sqrt
|
|
28597
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
29198
|
+
br $~lib/math/NativeMath.sqrt|inlined.7
|
|
28598
29199
|
end
|
|
28599
29200
|
local.set $amp
|
|
28600
29201
|
local.get $wantY
|
|
@@ -28628,12 +29229,12 @@
|
|
|
28628
29229
|
(func $src/special/_besselJ0 (param $x f64) (result f64)
|
|
28629
29230
|
(local $x|1 f64)
|
|
28630
29231
|
(local $ax f64)
|
|
28631
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
29232
|
+
block $~lib/math/NativeMath.abs|inlined.46 (result f64)
|
|
28632
29233
|
local.get $x
|
|
28633
29234
|
local.set $x|1
|
|
28634
29235
|
local.get $x|1
|
|
28635
29236
|
f64.abs
|
|
28636
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
29237
|
+
br $~lib/math/NativeMath.abs|inlined.46
|
|
28637
29238
|
end
|
|
28638
29239
|
local.set $ax
|
|
28639
29240
|
local.get $ax
|
|
@@ -28726,19 +29327,19 @@
|
|
|
28726
29327
|
local.get $term
|
|
28727
29328
|
f64.add
|
|
28728
29329
|
local.set $sum
|
|
28729
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
29330
|
+
block $~lib/math/NativeMath.abs|inlined.51 (result f64)
|
|
28730
29331
|
local.get $term
|
|
28731
29332
|
local.set $x|6
|
|
28732
29333
|
local.get $x|6
|
|
28733
29334
|
f64.abs
|
|
28734
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
29335
|
+
br $~lib/math/NativeMath.abs|inlined.51
|
|
28735
29336
|
end
|
|
28736
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
29337
|
+
block $~lib/math/NativeMath.abs|inlined.52 (result f64)
|
|
28737
29338
|
local.get $sum
|
|
28738
29339
|
local.set $x|7
|
|
28739
29340
|
local.get $x|7
|
|
28740
29341
|
f64.abs
|
|
28741
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
29342
|
+
br $~lib/math/NativeMath.abs|inlined.52
|
|
28742
29343
|
end
|
|
28743
29344
|
f64.const 1e-17
|
|
28744
29345
|
f64.mul
|
|
@@ -28775,12 +29376,12 @@
|
|
|
28775
29376
|
f64.const 1
|
|
28776
29377
|
end
|
|
28777
29378
|
local.set $sign
|
|
28778
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
29379
|
+
block $~lib/math/NativeMath.abs|inlined.50 (result f64)
|
|
28779
29380
|
local.get $x
|
|
28780
29381
|
local.set $x|2
|
|
28781
29382
|
local.get $x|2
|
|
28782
29383
|
f64.abs
|
|
28783
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
29384
|
+
br $~lib/math/NativeMath.abs|inlined.50
|
|
28784
29385
|
end
|
|
28785
29386
|
local.set $ax
|
|
28786
29387
|
local.get $ax
|
|
@@ -28838,21 +29439,41 @@
|
|
|
28838
29439
|
(local $ni i32)
|
|
28839
29440
|
(local $sign f64)
|
|
28840
29441
|
(local $x|4 f64)
|
|
28841
|
-
(local $
|
|
29442
|
+
(local $nf f64)
|
|
29443
|
+
(local $x|6 f64)
|
|
29444
|
+
(local $ax f64)
|
|
28842
29445
|
(local $jPrev f64)
|
|
28843
29446
|
(local $jCurr f64)
|
|
28844
29447
|
(local $k i32)
|
|
28845
29448
|
(local $jNext f64)
|
|
28846
|
-
(local $x|
|
|
28847
|
-
(local $
|
|
28848
|
-
(local $
|
|
29449
|
+
(local $x|12 f64)
|
|
29450
|
+
(local $x|13 f64)
|
|
29451
|
+
(local $value1 f64)
|
|
29452
|
+
(local $value2 f64)
|
|
29453
|
+
(local $extra f64)
|
|
29454
|
+
(local $nStartF f64)
|
|
28849
29455
|
(local $nStart i32)
|
|
28850
|
-
(local $jNext|
|
|
28851
|
-
(local $jCurr|
|
|
29456
|
+
(local $jNext|19 f64)
|
|
29457
|
+
(local $jCurr|20 f64)
|
|
28852
29458
|
(local $resultVal f64)
|
|
28853
29459
|
(local $sum f64)
|
|
28854
|
-
(local $
|
|
28855
|
-
(local $
|
|
29460
|
+
(local $shifts i32)
|
|
29461
|
+
(local $k|24 i32)
|
|
29462
|
+
(local $jPrev|25 f64)
|
|
29463
|
+
(local $x|26 f64)
|
|
29464
|
+
(local $r f64)
|
|
29465
|
+
(local $i i32)
|
|
29466
|
+
local.get $n
|
|
29467
|
+
global.get $~lib/builtins/i32.MIN_VALUE
|
|
29468
|
+
i32.eq
|
|
29469
|
+
if
|
|
29470
|
+
i32.const 13808
|
|
29471
|
+
i32.const 13920
|
|
29472
|
+
i32.const 256
|
|
29473
|
+
i32.const 27
|
|
29474
|
+
call $src/abort/trapAbort
|
|
29475
|
+
unreachable
|
|
29476
|
+
end
|
|
28856
29477
|
local.get $n
|
|
28857
29478
|
i32.const 0
|
|
28858
29479
|
i32.lt_s
|
|
@@ -28902,28 +29523,67 @@
|
|
|
28902
29523
|
f64.mul
|
|
28903
29524
|
return
|
|
28904
29525
|
end
|
|
28905
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
29526
|
+
block $~lib/math/NativeMath.abs|inlined.53 (result f64)
|
|
28906
29527
|
local.get $x
|
|
28907
29528
|
local.set $x|4
|
|
28908
29529
|
local.get $x|4
|
|
28909
29530
|
f64.abs
|
|
28910
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
29531
|
+
br $~lib/math/NativeMath.abs|inlined.53
|
|
28911
29532
|
end
|
|
28912
29533
|
f64.const 1e-15
|
|
28913
29534
|
f64.lt
|
|
28914
29535
|
if
|
|
29536
|
+
local.get $sign
|
|
28915
29537
|
f64.const 0
|
|
29538
|
+
f64.mul
|
|
28916
29539
|
return
|
|
28917
29540
|
end
|
|
28918
|
-
|
|
28919
|
-
|
|
28920
|
-
|
|
28921
|
-
|
|
28922
|
-
f64.
|
|
28923
|
-
|
|
29541
|
+
local.get $x
|
|
29542
|
+
local.get $x
|
|
29543
|
+
f64.ne
|
|
29544
|
+
if
|
|
29545
|
+
f64.const nan:0x8000000000000
|
|
29546
|
+
return
|
|
28924
29547
|
end
|
|
28925
29548
|
local.get $ni
|
|
28926
29549
|
f64.convert_i32_s
|
|
29550
|
+
local.set $nf
|
|
29551
|
+
block $~lib/math/NativeMath.abs|inlined.54 (result f64)
|
|
29552
|
+
local.get $x
|
|
29553
|
+
local.set $x|6
|
|
29554
|
+
local.get $x|6
|
|
29555
|
+
f64.abs
|
|
29556
|
+
br $~lib/math/NativeMath.abs|inlined.54
|
|
29557
|
+
end
|
|
29558
|
+
local.set $ax
|
|
29559
|
+
local.get $ax
|
|
29560
|
+
local.get $nf
|
|
29561
|
+
f64.le
|
|
29562
|
+
if (result i32)
|
|
29563
|
+
local.get $nf
|
|
29564
|
+
f64.const 1
|
|
29565
|
+
local.get $ax
|
|
29566
|
+
f64.const 2
|
|
29567
|
+
f64.div
|
|
29568
|
+
call $~lib/math/NativeMath.log
|
|
29569
|
+
f64.add
|
|
29570
|
+
local.get $nf
|
|
29571
|
+
call $~lib/math/NativeMath.log
|
|
29572
|
+
f64.sub
|
|
29573
|
+
f64.mul
|
|
29574
|
+
f64.const -745.2
|
|
29575
|
+
f64.lt
|
|
29576
|
+
else
|
|
29577
|
+
i32.const 0
|
|
29578
|
+
end
|
|
29579
|
+
if
|
|
29580
|
+
local.get $sign
|
|
29581
|
+
f64.const 0
|
|
29582
|
+
f64.mul
|
|
29583
|
+
return
|
|
29584
|
+
end
|
|
29585
|
+
local.get $ax
|
|
29586
|
+
local.get $nf
|
|
28927
29587
|
f64.gt
|
|
28928
29588
|
if
|
|
28929
29589
|
local.get $x
|
|
@@ -28950,6 +29610,13 @@
|
|
|
28950
29610
|
local.get $jPrev
|
|
28951
29611
|
f64.sub
|
|
28952
29612
|
local.set $jNext
|
|
29613
|
+
local.get $jNext
|
|
29614
|
+
local.get $jNext
|
|
29615
|
+
f64.ne
|
|
29616
|
+
if
|
|
29617
|
+
f64.const nan:0x8000000000000
|
|
29618
|
+
return
|
|
29619
|
+
end
|
|
28953
29620
|
local.get $jCurr
|
|
28954
29621
|
local.set $jPrev
|
|
28955
29622
|
local.get $jNext
|
|
@@ -28966,100 +29633,188 @@
|
|
|
28966
29633
|
f64.mul
|
|
28967
29634
|
return
|
|
28968
29635
|
end
|
|
28969
|
-
block $~lib/math/NativeMath.
|
|
28970
|
-
f64.const
|
|
28971
|
-
local.
|
|
28972
|
-
f64
|
|
28973
|
-
|
|
28974
|
-
|
|
28975
|
-
|
|
28976
|
-
|
|
28977
|
-
|
|
28978
|
-
|
|
28979
|
-
|
|
28980
|
-
|
|
28981
|
-
|
|
28982
|
-
|
|
28983
|
-
|
|
28984
|
-
|
|
28985
|
-
|
|
28986
|
-
|
|
28987
|
-
local.
|
|
29636
|
+
block $~lib/math/NativeMath.max|inlined.0 (result f64)
|
|
29637
|
+
f64.const 10
|
|
29638
|
+
local.set $value1
|
|
29639
|
+
block $~lib/math/NativeMath.ceil|inlined.0 (result f64)
|
|
29640
|
+
block $~lib/math/NativeMath.sqrt|inlined.8 (result f64)
|
|
29641
|
+
f64.const 40
|
|
29642
|
+
local.get $nf
|
|
29643
|
+
f64.mul
|
|
29644
|
+
local.set $x|12
|
|
29645
|
+
local.get $x|12
|
|
29646
|
+
f64.sqrt
|
|
29647
|
+
br $~lib/math/NativeMath.sqrt|inlined.8
|
|
29648
|
+
end
|
|
29649
|
+
local.set $x|13
|
|
29650
|
+
local.get $x|13
|
|
29651
|
+
f64.ceil
|
|
29652
|
+
br $~lib/math/NativeMath.ceil|inlined.0
|
|
29653
|
+
end
|
|
29654
|
+
local.set $value2
|
|
29655
|
+
local.get $value1
|
|
29656
|
+
local.get $value2
|
|
29657
|
+
f64.max
|
|
29658
|
+
br $~lib/math/NativeMath.max|inlined.0
|
|
28988
29659
|
end
|
|
28989
29660
|
local.set $extra
|
|
28990
|
-
local.get $
|
|
28991
|
-
|
|
29661
|
+
local.get $nf
|
|
29662
|
+
f64.const 2
|
|
28992
29663
|
local.get $extra
|
|
28993
|
-
|
|
28994
|
-
|
|
29664
|
+
f64.mul
|
|
29665
|
+
f64.add
|
|
29666
|
+
local.set $nStartF
|
|
29667
|
+
local.get $nStartF
|
|
29668
|
+
global.get $src/special/_BESSEL_J_MAX_SWEEP
|
|
29669
|
+
f64.gt
|
|
29670
|
+
if
|
|
29671
|
+
i32.const 13968
|
|
29672
|
+
i32.const 13920
|
|
29673
|
+
i32.const 287
|
|
29674
|
+
i32.const 5
|
|
29675
|
+
call $src/abort/trapAbort
|
|
29676
|
+
unreachable
|
|
29677
|
+
end
|
|
29678
|
+
local.get $nStartF
|
|
29679
|
+
i32.trunc_sat_f64_s
|
|
28995
29680
|
local.set $nStart
|
|
28996
29681
|
f64.const 0
|
|
28997
|
-
local.set $jNext|
|
|
29682
|
+
local.set $jNext|19
|
|
28998
29683
|
f64.const 1
|
|
28999
|
-
local.set $jCurr|
|
|
29684
|
+
local.set $jCurr|20
|
|
29000
29685
|
f64.const 0
|
|
29001
29686
|
local.set $resultVal
|
|
29002
29687
|
f64.const 0
|
|
29003
29688
|
local.set $sum
|
|
29689
|
+
i32.const 0
|
|
29690
|
+
local.set $shifts
|
|
29004
29691
|
local.get $nStart
|
|
29005
|
-
local.set $k|
|
|
29692
|
+
local.set $k|24
|
|
29006
29693
|
loop $for-loop|1
|
|
29007
|
-
local.get $k|
|
|
29694
|
+
local.get $k|24
|
|
29008
29695
|
i32.const 0
|
|
29009
29696
|
i32.ge_s
|
|
29010
29697
|
if
|
|
29011
29698
|
f64.const 2
|
|
29012
|
-
local.get $k|
|
|
29699
|
+
local.get $k|24
|
|
29013
29700
|
i32.const 1
|
|
29014
29701
|
i32.add
|
|
29015
29702
|
f64.convert_i32_s
|
|
29016
29703
|
f64.mul
|
|
29017
29704
|
local.get $x
|
|
29018
29705
|
f64.div
|
|
29019
|
-
local.get $jCurr|
|
|
29706
|
+
local.get $jCurr|20
|
|
29020
29707
|
f64.mul
|
|
29021
|
-
local.get $jNext|
|
|
29708
|
+
local.get $jNext|19
|
|
29022
29709
|
f64.sub
|
|
29023
|
-
local.set $jPrev|
|
|
29024
|
-
local.get $jCurr|
|
|
29025
|
-
local.set $jNext|
|
|
29026
|
-
local.get $jPrev|
|
|
29027
|
-
local.set $jCurr|
|
|
29028
|
-
|
|
29710
|
+
local.set $jPrev|25
|
|
29711
|
+
local.get $jCurr|20
|
|
29712
|
+
local.set $jNext|19
|
|
29713
|
+
local.get $jPrev|25
|
|
29714
|
+
local.set $jCurr|20
|
|
29715
|
+
block $~lib/math/NativeMath.abs|inlined.55 (result f64)
|
|
29716
|
+
local.get $jCurr|20
|
|
29717
|
+
local.set $x|26
|
|
29718
|
+
local.get $x|26
|
|
29719
|
+
f64.abs
|
|
29720
|
+
br $~lib/math/NativeMath.abs|inlined.55
|
|
29721
|
+
end
|
|
29722
|
+
f64.const 1.e+200
|
|
29723
|
+
f64.gt
|
|
29724
|
+
if
|
|
29725
|
+
local.get $jCurr|20
|
|
29726
|
+
global.get $src/special/_BESSEL_J_DOWN
|
|
29727
|
+
f64.mul
|
|
29728
|
+
local.set $jCurr|20
|
|
29729
|
+
local.get $jNext|19
|
|
29730
|
+
global.get $src/special/_BESSEL_J_DOWN
|
|
29731
|
+
f64.mul
|
|
29732
|
+
local.set $jNext|19
|
|
29733
|
+
local.get $sum
|
|
29734
|
+
global.get $src/special/_BESSEL_J_DOWN
|
|
29735
|
+
f64.mul
|
|
29736
|
+
local.set $sum
|
|
29737
|
+
local.get $k|24
|
|
29738
|
+
local.get $ni
|
|
29739
|
+
i32.lt_s
|
|
29740
|
+
if
|
|
29741
|
+
local.get $shifts
|
|
29742
|
+
i32.const 1
|
|
29743
|
+
i32.add
|
|
29744
|
+
local.set $shifts
|
|
29745
|
+
local.get $shifts
|
|
29746
|
+
i32.const 3
|
|
29747
|
+
i32.eq
|
|
29748
|
+
if
|
|
29749
|
+
local.get $sign
|
|
29750
|
+
f64.const 0
|
|
29751
|
+
f64.mul
|
|
29752
|
+
return
|
|
29753
|
+
end
|
|
29754
|
+
end
|
|
29755
|
+
end
|
|
29756
|
+
local.get $k|24
|
|
29029
29757
|
local.get $ni
|
|
29030
29758
|
i32.eq
|
|
29031
29759
|
if
|
|
29032
|
-
local.get $jCurr|
|
|
29760
|
+
local.get $jCurr|20
|
|
29033
29761
|
local.set $resultVal
|
|
29034
29762
|
end
|
|
29035
|
-
local.get $k|
|
|
29763
|
+
local.get $k|24
|
|
29036
29764
|
i32.const 2
|
|
29037
29765
|
i32.rem_s
|
|
29038
29766
|
i32.const 0
|
|
29039
29767
|
i32.eq
|
|
29040
29768
|
if
|
|
29041
29769
|
local.get $sum
|
|
29042
|
-
local.get $jCurr|
|
|
29770
|
+
local.get $jCurr|20
|
|
29043
29771
|
f64.add
|
|
29044
29772
|
local.set $sum
|
|
29045
29773
|
end
|
|
29046
|
-
local.get $k|
|
|
29774
|
+
local.get $k|24
|
|
29047
29775
|
i32.const 1
|
|
29048
29776
|
i32.sub
|
|
29049
|
-
local.set $k|
|
|
29777
|
+
local.set $k|24
|
|
29050
29778
|
br $for-loop|1
|
|
29051
29779
|
end
|
|
29052
29780
|
end
|
|
29053
29781
|
f64.const 2
|
|
29054
29782
|
local.get $sum
|
|
29055
29783
|
f64.mul
|
|
29056
|
-
local.get $jCurr|
|
|
29784
|
+
local.get $jCurr|20
|
|
29057
29785
|
f64.sub
|
|
29058
29786
|
local.set $sum
|
|
29059
|
-
local.get $sign
|
|
29060
29787
|
local.get $resultVal
|
|
29061
29788
|
local.get $sum
|
|
29062
29789
|
f64.div
|
|
29790
|
+
local.set $r
|
|
29791
|
+
i32.const 0
|
|
29792
|
+
local.set $i
|
|
29793
|
+
loop $for-loop|2
|
|
29794
|
+
local.get $i
|
|
29795
|
+
local.get $shifts
|
|
29796
|
+
i32.lt_s
|
|
29797
|
+
if (result i32)
|
|
29798
|
+
local.get $r
|
|
29799
|
+
f64.const 0
|
|
29800
|
+
f64.ne
|
|
29801
|
+
else
|
|
29802
|
+
i32.const 0
|
|
29803
|
+
end
|
|
29804
|
+
if
|
|
29805
|
+
local.get $r
|
|
29806
|
+
global.get $src/special/_BESSEL_J_DOWN
|
|
29807
|
+
f64.mul
|
|
29808
|
+
local.set $r
|
|
29809
|
+
local.get $i
|
|
29810
|
+
i32.const 1
|
|
29811
|
+
i32.add
|
|
29812
|
+
local.set $i
|
|
29813
|
+
br $for-loop|2
|
|
29814
|
+
end
|
|
29815
|
+
end
|
|
29816
|
+
local.get $sign
|
|
29817
|
+
local.get $r
|
|
29063
29818
|
f64.mul
|
|
29064
29819
|
return
|
|
29065
29820
|
)
|
|
@@ -29198,19 +29953,19 @@
|
|
|
29198
29953
|
i32.const 2
|
|
29199
29954
|
i32.gt_s
|
|
29200
29955
|
if (result i32)
|
|
29201
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
29956
|
+
block $~lib/math/NativeMath.abs|inlined.56 (result f64)
|
|
29202
29957
|
local.get $d
|
|
29203
29958
|
local.set $x|9
|
|
29204
29959
|
local.get $x|9
|
|
29205
29960
|
f64.abs
|
|
29206
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
29961
|
+
br $~lib/math/NativeMath.abs|inlined.56
|
|
29207
29962
|
end
|
|
29208
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
29963
|
+
block $~lib/math/NativeMath.abs|inlined.57 (result f64)
|
|
29209
29964
|
local.get $s
|
|
29210
29965
|
local.set $x|10
|
|
29211
29966
|
local.get $x|10
|
|
29212
29967
|
f64.abs
|
|
29213
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
29968
|
+
br $~lib/math/NativeMath.abs|inlined.57
|
|
29214
29969
|
end
|
|
29215
29970
|
f64.const 1e-17
|
|
29216
29971
|
f64.mul
|
|
@@ -29379,19 +30134,19 @@
|
|
|
29379
30134
|
i32.const 2
|
|
29380
30135
|
i32.gt_s
|
|
29381
30136
|
if (result i32)
|
|
29382
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
30137
|
+
block $~lib/math/NativeMath.abs|inlined.58 (result f64)
|
|
29383
30138
|
local.get $d
|
|
29384
30139
|
local.set $x|9
|
|
29385
30140
|
local.get $x|9
|
|
29386
30141
|
f64.abs
|
|
29387
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
30142
|
+
br $~lib/math/NativeMath.abs|inlined.58
|
|
29388
30143
|
end
|
|
29389
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
30144
|
+
block $~lib/math/NativeMath.abs|inlined.59 (result f64)
|
|
29390
30145
|
local.get $s
|
|
29391
30146
|
local.set $x|10
|
|
29392
30147
|
local.get $x|10
|
|
29393
30148
|
f64.abs
|
|
29394
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
30149
|
+
br $~lib/math/NativeMath.abs|inlined.59
|
|
29395
30150
|
end
|
|
29396
30151
|
f64.const 1e-17
|
|
29397
30152
|
f64.mul
|
|
@@ -29501,6 +30256,17 @@
|
|
|
29501
30256
|
return
|
|
29502
30257
|
end
|
|
29503
30258
|
local.get $n
|
|
30259
|
+
global.get $~lib/builtins/i32.MIN_VALUE
|
|
30260
|
+
i32.eq
|
|
30261
|
+
if
|
|
30262
|
+
i32.const 14112
|
|
30263
|
+
i32.const 13920
|
|
30264
|
+
i32.const 327
|
|
30265
|
+
i32.const 27
|
|
30266
|
+
call $src/abort/trapAbort
|
|
30267
|
+
unreachable
|
|
30268
|
+
end
|
|
30269
|
+
local.get $n
|
|
29504
30270
|
i32.const 0
|
|
29505
30271
|
i32.lt_s
|
|
29506
30272
|
if (result i32)
|
|
@@ -29573,6 +30339,18 @@
|
|
|
29573
30339
|
local.get $yPrev
|
|
29574
30340
|
f64.sub
|
|
29575
30341
|
local.set $yNext
|
|
30342
|
+
local.get $yNext
|
|
30343
|
+
local.get $yNext
|
|
30344
|
+
f64.sub
|
|
30345
|
+
f64.const 0
|
|
30346
|
+
f64.eq
|
|
30347
|
+
i32.eqz
|
|
30348
|
+
if
|
|
30349
|
+
local.get $sign
|
|
30350
|
+
local.get $yNext
|
|
30351
|
+
f64.mul
|
|
30352
|
+
return
|
|
30353
|
+
end
|
|
29576
30354
|
local.get $yCurr
|
|
29577
30355
|
local.set $yPrev
|
|
29578
30356
|
local.get $yNext
|
|
@@ -29716,12 +30494,12 @@
|
|
|
29716
30494
|
f64.div
|
|
29717
30495
|
local.get $x
|
|
29718
30496
|
f64.mul
|
|
29719
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
30497
|
+
block $~lib/math/NativeMath.sqrt|inlined.9 (result f64)
|
|
29720
30498
|
local.get $x
|
|
29721
30499
|
local.set $x|3
|
|
29722
30500
|
local.get $x|3
|
|
29723
30501
|
f64.sqrt
|
|
29724
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
30502
|
+
br $~lib/math/NativeMath.sqrt|inlined.9
|
|
29725
30503
|
end
|
|
29726
30504
|
f64.mul
|
|
29727
30505
|
local.set $zeta
|
|
@@ -29753,12 +30531,12 @@
|
|
|
29753
30531
|
local.get $zk
|
|
29754
30532
|
f64.div
|
|
29755
30533
|
local.set $t
|
|
29756
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
30534
|
+
block $~lib/math/NativeMath.abs|inlined.60 (result f64)
|
|
29757
30535
|
local.get $t
|
|
29758
30536
|
local.set $x|11
|
|
29759
30537
|
local.get $x|11
|
|
29760
30538
|
f64.abs
|
|
29761
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
30539
|
+
br $~lib/math/NativeMath.abs|inlined.60
|
|
29762
30540
|
end
|
|
29763
30541
|
local.set $mag
|
|
29764
30542
|
local.get $mag
|
|
@@ -29796,12 +30574,12 @@
|
|
|
29796
30574
|
end
|
|
29797
30575
|
end
|
|
29798
30576
|
end
|
|
29799
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
30577
|
+
block $~lib/math/NativeMath.sqrt|inlined.10 (result f64)
|
|
29800
30578
|
global.get $~lib/math/NativeMath.PI
|
|
29801
30579
|
local.set $x|13
|
|
29802
30580
|
local.get $x|13
|
|
29803
30581
|
f64.sqrt
|
|
29804
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
30582
|
+
br $~lib/math/NativeMath.sqrt|inlined.10
|
|
29805
30583
|
end
|
|
29806
30584
|
local.set $sp
|
|
29807
30585
|
local.get $isAi
|
|
@@ -29849,12 +30627,12 @@
|
|
|
29849
30627
|
(local $theta f64)
|
|
29850
30628
|
(local $x|19 f64)
|
|
29851
30629
|
(local $sp f64)
|
|
29852
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
30630
|
+
block $~lib/math/NativeMath.abs|inlined.61 (result f64)
|
|
29853
30631
|
local.get $x
|
|
29854
30632
|
local.set $x|2
|
|
29855
30633
|
local.get $x|2
|
|
29856
30634
|
f64.abs
|
|
29857
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
30635
|
+
br $~lib/math/NativeMath.abs|inlined.61
|
|
29858
30636
|
end
|
|
29859
30637
|
local.set $ax
|
|
29860
30638
|
local.get $ax
|
|
@@ -29866,12 +30644,12 @@
|
|
|
29866
30644
|
f64.div
|
|
29867
30645
|
local.get $ax
|
|
29868
30646
|
f64.mul
|
|
29869
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
30647
|
+
block $~lib/math/NativeMath.sqrt|inlined.11 (result f64)
|
|
29870
30648
|
local.get $ax
|
|
29871
30649
|
local.set $x|5
|
|
29872
30650
|
local.get $x|5
|
|
29873
30651
|
f64.sqrt
|
|
29874
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
30652
|
+
br $~lib/math/NativeMath.sqrt|inlined.11
|
|
29875
30653
|
end
|
|
29876
30654
|
f64.mul
|
|
29877
30655
|
local.set $zeta
|
|
@@ -29905,12 +30683,12 @@
|
|
|
29905
30683
|
local.get $zk
|
|
29906
30684
|
f64.div
|
|
29907
30685
|
local.set $t
|
|
29908
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
30686
|
+
block $~lib/math/NativeMath.abs|inlined.62 (result f64)
|
|
29909
30687
|
local.get $t
|
|
29910
30688
|
local.set $x|14
|
|
29911
30689
|
local.get $x|14
|
|
29912
30690
|
f64.abs
|
|
29913
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
30691
|
+
br $~lib/math/NativeMath.abs|inlined.62
|
|
29914
30692
|
end
|
|
29915
30693
|
local.set $mag
|
|
29916
30694
|
local.get $mag
|
|
@@ -29975,12 +30753,12 @@
|
|
|
29975
30753
|
f64.div
|
|
29976
30754
|
f64.sub
|
|
29977
30755
|
local.set $theta
|
|
29978
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
30756
|
+
block $~lib/math/NativeMath.sqrt|inlined.12 (result f64)
|
|
29979
30757
|
global.get $~lib/math/NativeMath.PI
|
|
29980
30758
|
local.set $x|19
|
|
29981
30759
|
local.get $x|19
|
|
29982
30760
|
f64.sqrt
|
|
29983
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
30761
|
+
br $~lib/math/NativeMath.sqrt|inlined.12
|
|
29984
30762
|
end
|
|
29985
30763
|
local.set $sp
|
|
29986
30764
|
local.get $isAi
|
|
@@ -30148,37 +30926,37 @@
|
|
|
30148
30926
|
local.get $dg
|
|
30149
30927
|
f64.add
|
|
30150
30928
|
local.set $g
|
|
30151
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
30929
|
+
block $~lib/math/NativeMath.abs|inlined.63 (result f64)
|
|
30152
30930
|
local.get $df
|
|
30153
30931
|
local.set $x|15
|
|
30154
30932
|
local.get $x|15
|
|
30155
30933
|
f64.abs
|
|
30156
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
30934
|
+
br $~lib/math/NativeMath.abs|inlined.63
|
|
30157
30935
|
end
|
|
30158
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
30936
|
+
block $~lib/math/NativeMath.abs|inlined.64 (result f64)
|
|
30159
30937
|
local.get $f
|
|
30160
30938
|
local.set $x|16
|
|
30161
30939
|
local.get $x|16
|
|
30162
30940
|
f64.abs
|
|
30163
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
30941
|
+
br $~lib/math/NativeMath.abs|inlined.64
|
|
30164
30942
|
end
|
|
30165
30943
|
f64.const 1e-16
|
|
30166
30944
|
f64.mul
|
|
30167
30945
|
f64.lt
|
|
30168
30946
|
if (result i32)
|
|
30169
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
30947
|
+
block $~lib/math/NativeMath.abs|inlined.65 (result f64)
|
|
30170
30948
|
local.get $dg
|
|
30171
30949
|
local.set $x|17
|
|
30172
30950
|
local.get $x|17
|
|
30173
30951
|
f64.abs
|
|
30174
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
30952
|
+
br $~lib/math/NativeMath.abs|inlined.65
|
|
30175
30953
|
end
|
|
30176
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
30954
|
+
block $~lib/math/NativeMath.abs|inlined.66 (result f64)
|
|
30177
30955
|
local.get $g
|
|
30178
30956
|
local.set $x|18
|
|
30179
30957
|
local.get $x|18
|
|
30180
30958
|
f64.abs
|
|
30181
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
30959
|
+
br $~lib/math/NativeMath.abs|inlined.66
|
|
30182
30960
|
end
|
|
30183
30961
|
f64.const 1e-16
|
|
30184
30962
|
f64.mul
|
|
@@ -30210,12 +30988,12 @@
|
|
|
30210
30988
|
f64.sub
|
|
30211
30989
|
return
|
|
30212
30990
|
end
|
|
30213
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
30991
|
+
block $~lib/math/NativeMath.sqrt|inlined.13 (result f64)
|
|
30214
30992
|
f64.const 3
|
|
30215
30993
|
local.set $x|19
|
|
30216
30994
|
local.get $x|19
|
|
30217
30995
|
f64.sqrt
|
|
30218
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
30996
|
+
br $~lib/math/NativeMath.sqrt|inlined.13
|
|
30219
30997
|
end
|
|
30220
30998
|
global.get $src/special/AI0
|
|
30221
30999
|
local.get $f
|
|
@@ -30401,14 +31179,14 @@
|
|
|
30401
31179
|
end
|
|
30402
31180
|
f64.const 1
|
|
30403
31181
|
local.set $a
|
|
30404
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
31182
|
+
block $~lib/math/NativeMath.sqrt|inlined.14 (result f64)
|
|
30405
31183
|
f64.const 1
|
|
30406
31184
|
local.get $m
|
|
30407
31185
|
f64.sub
|
|
30408
31186
|
local.set $x
|
|
30409
31187
|
local.get $x
|
|
30410
31188
|
f64.sqrt
|
|
30411
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
31189
|
+
br $~lib/math/NativeMath.sqrt|inlined.14
|
|
30412
31190
|
end
|
|
30413
31191
|
local.set $b
|
|
30414
31192
|
i32.const 0
|
|
@@ -30425,24 +31203,24 @@
|
|
|
30425
31203
|
f64.const 2
|
|
30426
31204
|
f64.div
|
|
30427
31205
|
local.set $aNew
|
|
30428
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
31206
|
+
block $~lib/math/NativeMath.sqrt|inlined.15 (result f64)
|
|
30429
31207
|
local.get $a
|
|
30430
31208
|
local.get $b
|
|
30431
31209
|
f64.mul
|
|
30432
31210
|
local.set $x|6
|
|
30433
31211
|
local.get $x|6
|
|
30434
31212
|
f64.sqrt
|
|
30435
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
31213
|
+
br $~lib/math/NativeMath.sqrt|inlined.15
|
|
30436
31214
|
end
|
|
30437
31215
|
local.set $bNew
|
|
30438
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
31216
|
+
block $~lib/math/NativeMath.abs|inlined.67 (result f64)
|
|
30439
31217
|
local.get $aNew
|
|
30440
31218
|
local.get $bNew
|
|
30441
31219
|
f64.sub
|
|
30442
31220
|
local.set $x|8
|
|
30443
31221
|
local.get $x|8
|
|
30444
31222
|
f64.abs
|
|
30445
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
31223
|
+
br $~lib/math/NativeMath.abs|inlined.67
|
|
30446
31224
|
end
|
|
30447
31225
|
f64.const 1e-16
|
|
30448
31226
|
local.get $aNew
|
|
@@ -30559,22 +31337,22 @@
|
|
|
30559
31337
|
end
|
|
30560
31338
|
f64.const 1
|
|
30561
31339
|
local.set $a
|
|
30562
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
31340
|
+
block $~lib/math/NativeMath.sqrt|inlined.16 (result f64)
|
|
30563
31341
|
f64.const 1
|
|
30564
31342
|
local.get $m
|
|
30565
31343
|
f64.sub
|
|
30566
31344
|
local.set $x
|
|
30567
31345
|
local.get $x
|
|
30568
31346
|
f64.sqrt
|
|
30569
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
31347
|
+
br $~lib/math/NativeMath.sqrt|inlined.16
|
|
30570
31348
|
end
|
|
30571
31349
|
local.set $b
|
|
30572
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
31350
|
+
block $~lib/math/NativeMath.sqrt|inlined.17 (result f64)
|
|
30573
31351
|
local.get $m
|
|
30574
31352
|
local.set $x|4
|
|
30575
31353
|
local.get $x|4
|
|
30576
31354
|
f64.sqrt
|
|
30577
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
31355
|
+
br $~lib/math/NativeMath.sqrt|inlined.17
|
|
30578
31356
|
end
|
|
30579
31357
|
local.set $c
|
|
30580
31358
|
local.get $c
|
|
@@ -30597,14 +31375,14 @@
|
|
|
30597
31375
|
f64.const 2
|
|
30598
31376
|
f64.div
|
|
30599
31377
|
local.set $aNew
|
|
30600
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
31378
|
+
block $~lib/math/NativeMath.sqrt|inlined.18 (result f64)
|
|
30601
31379
|
local.get $a
|
|
30602
31380
|
local.get $b
|
|
30603
31381
|
f64.mul
|
|
30604
31382
|
local.set $x|10
|
|
30605
31383
|
local.get $x|10
|
|
30606
31384
|
f64.sqrt
|
|
30607
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
31385
|
+
br $~lib/math/NativeMath.sqrt|inlined.18
|
|
30608
31386
|
end
|
|
30609
31387
|
local.set $bNew
|
|
30610
31388
|
local.get $a
|
|
@@ -30625,12 +31403,12 @@
|
|
|
30625
31403
|
f64.mul
|
|
30626
31404
|
f64.add
|
|
30627
31405
|
local.set $sum
|
|
30628
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
31406
|
+
block $~lib/math/NativeMath.abs|inlined.68 (result f64)
|
|
30629
31407
|
local.get $cNew
|
|
30630
31408
|
local.set $x|13
|
|
30631
31409
|
local.get $x|13
|
|
30632
31410
|
f64.abs
|
|
30633
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
31411
|
+
br $~lib/math/NativeMath.abs|inlined.68
|
|
30634
31412
|
end
|
|
30635
31413
|
f64.const 1e-16
|
|
30636
31414
|
local.get $aNew
|
|
@@ -30734,7 +31512,7 @@
|
|
|
30734
31512
|
f64.const 0.5
|
|
30735
31513
|
f64.lt
|
|
30736
31514
|
if
|
|
30737
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
31515
|
+
block $~lib/math/NativeMath.abs|inlined.69 (result f64)
|
|
30738
31516
|
global.get $~lib/math/NativeMath.PI
|
|
30739
31517
|
local.get $x
|
|
30740
31518
|
f64.mul
|
|
@@ -30742,7 +31520,7 @@
|
|
|
30742
31520
|
local.set $x|2
|
|
30743
31521
|
local.get $x|2
|
|
30744
31522
|
f64.abs
|
|
30745
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
31523
|
+
br $~lib/math/NativeMath.abs|inlined.69
|
|
30746
31524
|
end
|
|
30747
31525
|
local.set $sinPiX
|
|
30748
31526
|
local.get $sinPiX
|
|
@@ -30916,14 +31694,14 @@
|
|
|
30916
31694
|
i32.lt_s
|
|
30917
31695
|
if
|
|
30918
31696
|
f64.const 2
|
|
30919
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
31697
|
+
block $~lib/math/NativeMath.sqrt|inlined.19 (result f64)
|
|
30920
31698
|
local.get $xx
|
|
30921
31699
|
local.get $yy
|
|
30922
31700
|
f64.mul
|
|
30923
31701
|
local.set $x|5
|
|
30924
31702
|
local.get $x|5
|
|
30925
31703
|
f64.sqrt
|
|
30926
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
31704
|
+
br $~lib/math/NativeMath.sqrt|inlined.19
|
|
30927
31705
|
end
|
|
30928
31706
|
f64.mul
|
|
30929
31707
|
local.get $yy
|
|
@@ -30961,22 +31739,22 @@
|
|
|
30961
31739
|
local.get $ave
|
|
30962
31740
|
f64.div
|
|
30963
31741
|
local.set $dy
|
|
30964
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
31742
|
+
block $~lib/math/NativeMath.abs|inlined.70 (result f64)
|
|
30965
31743
|
local.get $dx
|
|
30966
31744
|
local.set $x|10
|
|
30967
31745
|
local.get $x|10
|
|
30968
31746
|
f64.abs
|
|
30969
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
31747
|
+
br $~lib/math/NativeMath.abs|inlined.70
|
|
30970
31748
|
end
|
|
30971
31749
|
f64.const 1e-10
|
|
30972
31750
|
f64.lt
|
|
30973
31751
|
if (result i32)
|
|
30974
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
31752
|
+
block $~lib/math/NativeMath.abs|inlined.71 (result f64)
|
|
30975
31753
|
local.get $dy
|
|
30976
31754
|
local.set $x|11
|
|
30977
31755
|
local.get $x|11
|
|
30978
31756
|
f64.abs
|
|
30979
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
31757
|
+
br $~lib/math/NativeMath.abs|inlined.71
|
|
30980
31758
|
end
|
|
30981
31759
|
f64.const 1e-10
|
|
30982
31760
|
f64.lt
|
|
@@ -31007,12 +31785,12 @@
|
|
|
31007
31785
|
f64.const 1
|
|
31008
31786
|
local.get $s
|
|
31009
31787
|
f64.add
|
|
31010
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
31788
|
+
block $~lib/math/NativeMath.sqrt|inlined.20 (result f64)
|
|
31011
31789
|
local.get $ave
|
|
31012
31790
|
local.set $x|13
|
|
31013
31791
|
local.get $x|13
|
|
31014
31792
|
f64.sqrt
|
|
31015
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
31793
|
+
br $~lib/math/NativeMath.sqrt|inlined.20
|
|
31016
31794
|
end
|
|
31017
31795
|
f64.div
|
|
31018
31796
|
return
|
|
@@ -31025,12 +31803,12 @@
|
|
|
31025
31803
|
end
|
|
31026
31804
|
end
|
|
31027
31805
|
f64.const 1
|
|
31028
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
31806
|
+
block $~lib/math/NativeMath.sqrt|inlined.21 (result f64)
|
|
31029
31807
|
local.get $yy
|
|
31030
31808
|
local.set $x|14
|
|
31031
31809
|
local.get $x|14
|
|
31032
31810
|
f64.sqrt
|
|
31033
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
31811
|
+
br $~lib/math/NativeMath.sqrt|inlined.21
|
|
31034
31812
|
end
|
|
31035
31813
|
f64.div
|
|
31036
31814
|
return
|
|
@@ -31130,28 +31908,28 @@
|
|
|
31130
31908
|
i32.const 50
|
|
31131
31909
|
i32.lt_s
|
|
31132
31910
|
if
|
|
31133
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
31911
|
+
block $~lib/math/NativeMath.sqrt|inlined.22 (result f64)
|
|
31134
31912
|
local.get $xx
|
|
31135
31913
|
local.set $x|7
|
|
31136
31914
|
local.get $x|7
|
|
31137
31915
|
f64.sqrt
|
|
31138
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
31916
|
+
br $~lib/math/NativeMath.sqrt|inlined.22
|
|
31139
31917
|
end
|
|
31140
31918
|
local.set $sx
|
|
31141
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
31919
|
+
block $~lib/math/NativeMath.sqrt|inlined.23 (result f64)
|
|
31142
31920
|
local.get $yy
|
|
31143
31921
|
local.set $x|9
|
|
31144
31922
|
local.get $x|9
|
|
31145
31923
|
f64.sqrt
|
|
31146
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
31924
|
+
br $~lib/math/NativeMath.sqrt|inlined.23
|
|
31147
31925
|
end
|
|
31148
31926
|
local.set $sy
|
|
31149
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
31927
|
+
block $~lib/math/NativeMath.sqrt|inlined.24 (result f64)
|
|
31150
31928
|
local.get $zz
|
|
31151
31929
|
local.set $x|11
|
|
31152
31930
|
local.get $x|11
|
|
31153
31931
|
f64.sqrt
|
|
31154
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
31932
|
+
br $~lib/math/NativeMath.sqrt|inlined.24
|
|
31155
31933
|
end
|
|
31156
31934
|
local.set $sz
|
|
31157
31935
|
local.get $sx
|
|
@@ -31210,22 +31988,22 @@
|
|
|
31210
31988
|
local.get $ave
|
|
31211
31989
|
f64.div
|
|
31212
31990
|
local.set $dz
|
|
31213
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
31991
|
+
block $~lib/math/NativeMath.abs|inlined.72 (result f64)
|
|
31214
31992
|
local.get $dx
|
|
31215
31993
|
local.set $x|18
|
|
31216
31994
|
local.get $x|18
|
|
31217
31995
|
f64.abs
|
|
31218
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
31996
|
+
br $~lib/math/NativeMath.abs|inlined.72
|
|
31219
31997
|
end
|
|
31220
31998
|
f64.const 1e-10
|
|
31221
31999
|
f64.lt
|
|
31222
32000
|
if (result i32)
|
|
31223
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
32001
|
+
block $~lib/math/NativeMath.abs|inlined.73 (result f64)
|
|
31224
32002
|
local.get $dy
|
|
31225
32003
|
local.set $x|19
|
|
31226
32004
|
local.get $x|19
|
|
31227
32005
|
f64.abs
|
|
31228
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
32006
|
+
br $~lib/math/NativeMath.abs|inlined.73
|
|
31229
32007
|
end
|
|
31230
32008
|
f64.const 1e-10
|
|
31231
32009
|
f64.lt
|
|
@@ -31233,12 +32011,12 @@
|
|
|
31233
32011
|
i32.const 0
|
|
31234
32012
|
end
|
|
31235
32013
|
if (result i32)
|
|
31236
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
32014
|
+
block $~lib/math/NativeMath.abs|inlined.74 (result f64)
|
|
31237
32015
|
local.get $dz
|
|
31238
32016
|
local.set $x|20
|
|
31239
32017
|
local.get $x|20
|
|
31240
32018
|
f64.abs
|
|
31241
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
32019
|
+
br $~lib/math/NativeMath.abs|inlined.74
|
|
31242
32020
|
end
|
|
31243
32021
|
f64.const 1e-10
|
|
31244
32022
|
f64.lt
|
|
@@ -31281,12 +32059,12 @@
|
|
|
31281
32059
|
f64.const 14
|
|
31282
32060
|
f64.div
|
|
31283
32061
|
f64.add
|
|
31284
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
32062
|
+
block $~lib/math/NativeMath.sqrt|inlined.25 (result f64)
|
|
31285
32063
|
local.get $ave
|
|
31286
32064
|
local.set $x|23
|
|
31287
32065
|
local.get $x|23
|
|
31288
32066
|
f64.sqrt
|
|
31289
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
32067
|
+
br $~lib/math/NativeMath.sqrt|inlined.25
|
|
31290
32068
|
end
|
|
31291
32069
|
f64.div
|
|
31292
32070
|
return
|
|
@@ -31299,12 +32077,12 @@
|
|
|
31299
32077
|
end
|
|
31300
32078
|
end
|
|
31301
32079
|
f64.const 1
|
|
31302
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
32080
|
+
block $~lib/math/NativeMath.sqrt|inlined.26 (result f64)
|
|
31303
32081
|
local.get $zz
|
|
31304
32082
|
local.set $x|24
|
|
31305
32083
|
local.get $x|24
|
|
31306
32084
|
f64.sqrt
|
|
31307
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
32085
|
+
br $~lib/math/NativeMath.sqrt|inlined.26
|
|
31308
32086
|
end
|
|
31309
32087
|
f64.div
|
|
31310
32088
|
return
|
|
@@ -31449,28 +32227,28 @@
|
|
|
31449
32227
|
i32.const 50
|
|
31450
32228
|
i32.lt_s
|
|
31451
32229
|
if
|
|
31452
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
32230
|
+
block $~lib/math/NativeMath.sqrt|inlined.27 (result f64)
|
|
31453
32231
|
local.get $xx
|
|
31454
32232
|
local.set $x|9
|
|
31455
32233
|
local.get $x|9
|
|
31456
32234
|
f64.sqrt
|
|
31457
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
32235
|
+
br $~lib/math/NativeMath.sqrt|inlined.27
|
|
31458
32236
|
end
|
|
31459
32237
|
local.set $sx
|
|
31460
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
32238
|
+
block $~lib/math/NativeMath.sqrt|inlined.28 (result f64)
|
|
31461
32239
|
local.get $yy
|
|
31462
32240
|
local.set $x|11
|
|
31463
32241
|
local.get $x|11
|
|
31464
32242
|
f64.sqrt
|
|
31465
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
32243
|
+
br $~lib/math/NativeMath.sqrt|inlined.28
|
|
31466
32244
|
end
|
|
31467
32245
|
local.set $sy
|
|
31468
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
32246
|
+
block $~lib/math/NativeMath.sqrt|inlined.29 (result f64)
|
|
31469
32247
|
local.get $zz
|
|
31470
32248
|
local.set $x|13
|
|
31471
32249
|
local.get $x|13
|
|
31472
32250
|
f64.sqrt
|
|
31473
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
32251
|
+
br $~lib/math/NativeMath.sqrt|inlined.29
|
|
31474
32252
|
end
|
|
31475
32253
|
local.set $sz
|
|
31476
32254
|
local.get $sx
|
|
@@ -31545,22 +32323,22 @@
|
|
|
31545
32323
|
local.get $ave
|
|
31546
32324
|
f64.div
|
|
31547
32325
|
local.set $dz
|
|
31548
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
32326
|
+
block $~lib/math/NativeMath.abs|inlined.75 (result f64)
|
|
31549
32327
|
local.get $dx
|
|
31550
32328
|
local.set $x|20
|
|
31551
32329
|
local.get $x|20
|
|
31552
32330
|
f64.abs
|
|
31553
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
32331
|
+
br $~lib/math/NativeMath.abs|inlined.75
|
|
31554
32332
|
end
|
|
31555
32333
|
f64.const 1e-10
|
|
31556
32334
|
f64.lt
|
|
31557
32335
|
if (result i32)
|
|
31558
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
32336
|
+
block $~lib/math/NativeMath.abs|inlined.76 (result f64)
|
|
31559
32337
|
local.get $dy
|
|
31560
32338
|
local.set $x|21
|
|
31561
32339
|
local.get $x|21
|
|
31562
32340
|
f64.abs
|
|
31563
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
32341
|
+
br $~lib/math/NativeMath.abs|inlined.76
|
|
31564
32342
|
end
|
|
31565
32343
|
f64.const 1e-10
|
|
31566
32344
|
f64.lt
|
|
@@ -31568,12 +32346,12 @@
|
|
|
31568
32346
|
i32.const 0
|
|
31569
32347
|
end
|
|
31570
32348
|
if (result i32)
|
|
31571
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
32349
|
+
block $~lib/math/NativeMath.abs|inlined.77 (result f64)
|
|
31572
32350
|
local.get $dz
|
|
31573
32351
|
local.set $x|22
|
|
31574
32352
|
local.get $x|22
|
|
31575
32353
|
f64.abs
|
|
31576
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
32354
|
+
br $~lib/math/NativeMath.abs|inlined.77
|
|
31577
32355
|
end
|
|
31578
32356
|
f64.const 1e-10
|
|
31579
32357
|
f64.lt
|
|
@@ -31672,12 +32450,12 @@
|
|
|
31672
32450
|
local.get $ave
|
|
31673
32451
|
local.get $ave
|
|
31674
32452
|
f64.mul
|
|
31675
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
32453
|
+
block $~lib/math/NativeMath.sqrt|inlined.30 (result f64)
|
|
31676
32454
|
local.get $ave
|
|
31677
32455
|
local.set $x|31
|
|
31678
32456
|
local.get $x|31
|
|
31679
32457
|
f64.sqrt
|
|
31680
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
32458
|
+
br $~lib/math/NativeMath.sqrt|inlined.30
|
|
31681
32459
|
end
|
|
31682
32460
|
f64.mul
|
|
31683
32461
|
f64.div
|
|
@@ -31698,12 +32476,12 @@
|
|
|
31698
32476
|
local.get $zz
|
|
31699
32477
|
local.get $zz
|
|
31700
32478
|
f64.mul
|
|
31701
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
32479
|
+
block $~lib/math/NativeMath.sqrt|inlined.31 (result f64)
|
|
31702
32480
|
local.get $zz
|
|
31703
32481
|
local.set $x|32
|
|
31704
32482
|
local.get $x|32
|
|
31705
32483
|
f64.sqrt
|
|
31706
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
32484
|
+
br $~lib/math/NativeMath.sqrt|inlined.31
|
|
31707
32485
|
end
|
|
31708
32486
|
f64.mul
|
|
31709
32487
|
f64.div
|
|
@@ -31833,28 +32611,28 @@
|
|
|
31833
32611
|
i32.const 50
|
|
31834
32612
|
i32.lt_s
|
|
31835
32613
|
if
|
|
31836
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
32614
|
+
block $~lib/math/NativeMath.sqrt|inlined.32 (result f64)
|
|
31837
32615
|
local.get $xx
|
|
31838
32616
|
local.set $x|11
|
|
31839
32617
|
local.get $x|11
|
|
31840
32618
|
f64.sqrt
|
|
31841
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
32619
|
+
br $~lib/math/NativeMath.sqrt|inlined.32
|
|
31842
32620
|
end
|
|
31843
32621
|
local.set $sx
|
|
31844
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
32622
|
+
block $~lib/math/NativeMath.sqrt|inlined.33 (result f64)
|
|
31845
32623
|
local.get $yy
|
|
31846
32624
|
local.set $x|13
|
|
31847
32625
|
local.get $x|13
|
|
31848
32626
|
f64.sqrt
|
|
31849
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
32627
|
+
br $~lib/math/NativeMath.sqrt|inlined.33
|
|
31850
32628
|
end
|
|
31851
32629
|
local.set $sy
|
|
31852
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
32630
|
+
block $~lib/math/NativeMath.sqrt|inlined.34 (result f64)
|
|
31853
32631
|
local.get $zz
|
|
31854
32632
|
local.set $x|15
|
|
31855
32633
|
local.get $x|15
|
|
31856
32634
|
f64.sqrt
|
|
31857
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
32635
|
+
br $~lib/math/NativeMath.sqrt|inlined.34
|
|
31858
32636
|
end
|
|
31859
32637
|
local.set $sz
|
|
31860
32638
|
local.get $sx
|
|
@@ -31969,22 +32747,22 @@
|
|
|
31969
32747
|
local.get $ave
|
|
31970
32748
|
f64.div
|
|
31971
32749
|
local.set $dp
|
|
31972
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
32750
|
+
block $~lib/math/NativeMath.abs|inlined.78 (result f64)
|
|
31973
32751
|
local.get $dx
|
|
31974
32752
|
local.set $x|26
|
|
31975
32753
|
local.get $x|26
|
|
31976
32754
|
f64.abs
|
|
31977
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
32755
|
+
br $~lib/math/NativeMath.abs|inlined.78
|
|
31978
32756
|
end
|
|
31979
32757
|
f64.const 1e-10
|
|
31980
32758
|
f64.lt
|
|
31981
32759
|
if (result i32)
|
|
31982
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
32760
|
+
block $~lib/math/NativeMath.abs|inlined.79 (result f64)
|
|
31983
32761
|
local.get $dy
|
|
31984
32762
|
local.set $x|27
|
|
31985
32763
|
local.get $x|27
|
|
31986
32764
|
f64.abs
|
|
31987
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
32765
|
+
br $~lib/math/NativeMath.abs|inlined.79
|
|
31988
32766
|
end
|
|
31989
32767
|
f64.const 1e-10
|
|
31990
32768
|
f64.lt
|
|
@@ -31992,12 +32770,12 @@
|
|
|
31992
32770
|
i32.const 0
|
|
31993
32771
|
end
|
|
31994
32772
|
if (result i32)
|
|
31995
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
32773
|
+
block $~lib/math/NativeMath.abs|inlined.80 (result f64)
|
|
31996
32774
|
local.get $dz
|
|
31997
32775
|
local.set $x|28
|
|
31998
32776
|
local.get $x|28
|
|
31999
32777
|
f64.abs
|
|
32000
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
32778
|
+
br $~lib/math/NativeMath.abs|inlined.80
|
|
32001
32779
|
end
|
|
32002
32780
|
f64.const 1e-10
|
|
32003
32781
|
f64.lt
|
|
@@ -32005,12 +32783,12 @@
|
|
|
32005
32783
|
i32.const 0
|
|
32006
32784
|
end
|
|
32007
32785
|
if (result i32)
|
|
32008
|
-
block $~lib/math/NativeMath.abs|inlined.
|
|
32786
|
+
block $~lib/math/NativeMath.abs|inlined.81 (result f64)
|
|
32009
32787
|
local.get $dp
|
|
32010
32788
|
local.set $x|29
|
|
32011
32789
|
local.get $x|29
|
|
32012
32790
|
f64.abs
|
|
32013
|
-
br $~lib/math/NativeMath.abs|inlined.
|
|
32791
|
+
br $~lib/math/NativeMath.abs|inlined.81
|
|
32014
32792
|
end
|
|
32015
32793
|
f64.const 1e-10
|
|
32016
32794
|
f64.lt
|
|
@@ -32133,12 +32911,12 @@
|
|
|
32133
32911
|
local.get $ave
|
|
32134
32912
|
local.get $ave
|
|
32135
32913
|
f64.mul
|
|
32136
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
32914
|
+
block $~lib/math/NativeMath.sqrt|inlined.35 (result f64)
|
|
32137
32915
|
local.get $ave
|
|
32138
32916
|
local.set $x|36
|
|
32139
32917
|
local.get $x|36
|
|
32140
32918
|
f64.sqrt
|
|
32141
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
32919
|
+
br $~lib/math/NativeMath.sqrt|inlined.35
|
|
32142
32920
|
end
|
|
32143
32921
|
f64.mul
|
|
32144
32922
|
f64.div
|
|
@@ -32159,12 +32937,12 @@
|
|
|
32159
32937
|
local.get $pp
|
|
32160
32938
|
local.get $pp
|
|
32161
32939
|
f64.mul
|
|
32162
|
-
block $~lib/math/NativeMath.sqrt|inlined.
|
|
32940
|
+
block $~lib/math/NativeMath.sqrt|inlined.36 (result f64)
|
|
32163
32941
|
local.get $pp
|
|
32164
32942
|
local.set $x|37
|
|
32165
32943
|
local.get $x|37
|
|
32166
32944
|
f64.sqrt
|
|
32167
|
-
br $~lib/math/NativeMath.sqrt|inlined.
|
|
32945
|
+
br $~lib/math/NativeMath.sqrt|inlined.36
|
|
32168
32946
|
end
|
|
32169
32947
|
f64.mul
|
|
32170
32948
|
f64.div
|
|
@@ -34398,13 +35176,8 @@
|
|
|
34398
35176
|
local.get $result
|
|
34399
35177
|
local.get $i
|
|
34400
35178
|
local.get $re
|
|
34401
|
-
local.get $re
|
|
34402
|
-
f64.mul
|
|
34403
35179
|
local.get $im
|
|
34404
|
-
|
|
34405
|
-
f64.mul
|
|
34406
|
-
f64.add
|
|
34407
|
-
f64.sqrt
|
|
35180
|
+
call $~lib/math/NativeMath.hypot
|
|
34408
35181
|
call $~lib/typedarray/Float64Array#__uset
|
|
34409
35182
|
local.get $i
|
|
34410
35183
|
i32.const 1
|