@danielsimonjr/mathts-wasm 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,23 +13,23 @@
13
13
  (type $11 (func (param f64) (result i32)))
14
14
  (type $12 (func (param i32 i32 i32 i32) (result i32)))
15
15
  (type $13 (func (param i32 f64 i32)))
16
- (type $14 (func))
17
- (type $15 (func (param f64 f64) (result i32)))
18
- (type $16 (func (param f64 f64 f64) (result f64)))
19
- (type $17 (func (param i32 i32 i32 i32 i32)))
20
- (type $18 (func (param i32 i32 i32 f64) (result i32)))
21
- (type $19 (func (param i64 i64) (result i64)))
22
- (type $20 (func (param i32 f64) (result f64)))
23
- (type $21 (func (param i32)))
24
- (type $22 (func (param i32 f64 f64) (result i32)))
25
- (type $23 (func (param i32 i32 f64)))
26
- (type $24 (func (param i32 i32 f64) (result i32)))
27
- (type $25 (func (param i32 i32 i32 i32 i32) (result i32)))
28
- (type $26 (func (param i32 f64) (result i32)))
29
- (type $27 (func (param f64 i32) (result f64)))
30
- (type $28 (func (param f64 f64 i32) (result f64)))
31
- (type $29 (func (param i32 i32 i32 i32 i32 i32)))
32
- (type $30 (func (param i32 i32 i32) (result f64)))
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 i32 i32 i32 i32)))
19
+ (type $17 (func (param i32 i32 i32 f64) (result i32)))
20
+ (type $18 (func (param i64 i64) (result i64)))
21
+ (type $19 (func (param i32 f64) (result f64)))
22
+ (type $20 (func (param i32)))
23
+ (type $21 (func (param i32 f64 f64) (result i32)))
24
+ (type $22 (func (param i32 i32 f64)))
25
+ (type $23 (func (param i32 i32 f64) (result i32)))
26
+ (type $24 (func (param i32 i32 i32 i32 i32) (result i32)))
27
+ (type $25 (func (param i32 f64) (result i32)))
28
+ (type $26 (func (param f64 i32) (result f64)))
29
+ (type $27 (func (param f64 f64 i32) (result f64)))
30
+ (type $28 (func (param i32 i32 i32 i32 i32 i32)))
31
+ (type $29 (func (param i32 i32 i32) (result f64)))
32
+ (type $30 (func))
33
33
  (type $31 (func (param f64 i64) (result i32)))
34
34
  (type $32 (func (param f64 i32 f64 i32 i32)))
35
35
  (type $33 (func (param i32 f64 f64)))
@@ -45,12 +45,6 @@
45
45
  (type $43 (func (param i32 i32 f64 f64)))
46
46
  (type $44 (func (param i32 f64 f64 i32)))
47
47
  (import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32)))
48
- (global $~lib/rt/stub/startOffset (mut i32) (i32.const 0))
49
- (global $~lib/rt/stub/offset (mut i32) (i32.const 0))
50
- (global $src/types/complex/COMPLEX_ZERO (mut i32) (i32.const 0))
51
- (global $src/types/complex/COMPLEX_ONE (mut i32) (i32.const 0))
52
- (global $src/types/complex/COMPLEX_I (mut i32) (i32.const 0))
53
- (global $src/types/complex/COMPLEX_NEG_ONE (mut i32) (i32.const 0))
54
48
  (global $src/ops/scalar/PI f64 (f64.const 3.141592653589793))
55
49
  (global $src/ops/scalar/E f64 (f64.const 2.718281828459045))
56
50
  (global $src/ops/scalar/PHI f64 (f64.const 1.618033988749895))
@@ -82,6 +76,8 @@
82
76
  (global $src/special/AI0 f64 (f64.const 0.3550280538878172))
83
77
  (global $src/special/AI_PRIME0 f64 (f64.const 0.2588194037928068))
84
78
  (global $src/special/XBIG f64 (f64.const 5))
79
+ (global $~lib/rt/stub/startOffset (mut i32) (i32.const 0))
80
+ (global $~lib/rt/stub/offset (mut i32) (i32.const 0))
85
81
  (global $~lib/native/ASC_SHRINK_LEVEL i32 (i32.const 0))
86
82
  (global $~lib/math/rempio2_y0 (mut f64) (f64.const 0))
87
83
  (global $~lib/math/rempio2_y1 (mut f64) (f64.const 0))
@@ -649,45 +645,6 @@
649
645
  call $src/types/complex/Complex#set:im
650
646
  local.get $this
651
647
  )
652
- (func $start:src/types/complex
653
- global.get $~lib/memory/__heap_base
654
- i32.const 4
655
- i32.add
656
- i32.const 15
657
- i32.add
658
- i32.const 15
659
- i32.const -1
660
- i32.xor
661
- i32.and
662
- i32.const 4
663
- i32.sub
664
- global.set $~lib/rt/stub/startOffset
665
- global.get $~lib/rt/stub/startOffset
666
- global.set $~lib/rt/stub/offset
667
- i32.const 0
668
- f64.const 0
669
- f64.const 0
670
- call $src/types/complex/Complex#constructor
671
- global.set $src/types/complex/COMPLEX_ZERO
672
- i32.const 0
673
- f64.const 1
674
- f64.const 0
675
- call $src/types/complex/Complex#constructor
676
- global.set $src/types/complex/COMPLEX_ONE
677
- i32.const 0
678
- f64.const 0
679
- f64.const 1
680
- call $src/types/complex/Complex#constructor
681
- global.set $src/types/complex/COMPLEX_I
682
- i32.const 0
683
- f64.const -1
684
- f64.const 0
685
- call $src/types/complex/Complex#constructor
686
- global.set $src/types/complex/COMPLEX_NEG_ONE
687
- )
688
- (func $start:src/index
689
- call $start:src/types/complex
690
- )
691
648
  (func $src/types/complex/complex (param $re f64) (param $im f64) (result i32)
692
649
  i32.const 0
693
650
  local.get $re
@@ -36447,6 +36404,19 @@
36447
36404
  (func $~lib/rt/stub/__collect
36448
36405
  )
36449
36406
  (func $~start
36450
- call $start:src/index
36407
+ global.get $~lib/memory/__heap_base
36408
+ i32.const 4
36409
+ i32.add
36410
+ i32.const 15
36411
+ i32.add
36412
+ i32.const 15
36413
+ i32.const -1
36414
+ i32.xor
36415
+ i32.and
36416
+ i32.const 4
36417
+ i32.sub
36418
+ global.set $~lib/rt/stub/startOffset
36419
+ global.get $~lib/rt/stub/startOffset
36420
+ global.set $~lib/rt/stub/offset
36451
36421
  )
36452
36422
  )
package/build/mathts.wasm CHANGED
Binary file
package/build/mathts.wat CHANGED
@@ -45,7 +45,6 @@
45
45
  (type $43 (func (param i32 i32 f64 f64)))
46
46
  (type $44 (func (param i32 f64 f64 i32)))
47
47
  (import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32)))
48
- (global $~lib/rt/stub/offset (mut i32) (i32.const 0))
49
48
  (global $src/ops/scalar/PI f64 (f64.const 3.141592653589793))
50
49
  (global $src/ops/scalar/E f64 (f64.const 2.718281828459045))
51
50
  (global $src/ops/scalar/PHI f64 (f64.const 1.618033988749895))
@@ -56,6 +55,7 @@
56
55
  (global $src/ops/scalar/LOG2E f64 (f64.const 1.4426950408889634))
57
56
  (global $src/ops/scalar/LOG10E f64 (f64.const 0.4342944819032518))
58
57
  (global $src/ops/scalar/EPSILON f64 (f64.const 2.220446049250313e-16))
58
+ (global $~lib/rt/stub/offset (mut i32) (i32.const 0))
59
59
  (global $~lib/math/rempio2_y0 (mut f64) (f64.const 0))
60
60
  (global $~lib/math/rempio2_y1 (mut f64) (f64.const 0))
61
61
  (global $~lib/math/res128_hi (mut i64) (i64.const 0))
@@ -11208,7 +11208,7 @@
11208
11208
  end
11209
11209
  end
11210
11210
  local.get $1
11211
- block $__inlined_func$src/ops/number-theory/carmichaelPrimePower$28 (result i64)
11211
+ block $__inlined_func$src/ops/number-theory/carmichaelPrimePower$27 (result i64)
11212
11212
  local.get $2
11213
11213
  i64.const 2
11214
11214
  i64.eq
@@ -11217,18 +11217,18 @@
11217
11217
  local.get $4
11218
11218
  i64.const 2
11219
11219
  i64.le_s
11220
- br_if $__inlined_func$src/ops/number-theory/carmichaelPrimePower$28
11220
+ br_if $__inlined_func$src/ops/number-theory/carmichaelPrimePower$27
11221
11221
  drop
11222
11222
  i64.const 2
11223
11223
  local.get $4
11224
11224
  i64.const 4
11225
11225
  i64.eq
11226
- br_if $__inlined_func$src/ops/number-theory/carmichaelPrimePower$28
11226
+ br_if $__inlined_func$src/ops/number-theory/carmichaelPrimePower$27
11227
11227
  drop
11228
11228
  local.get $4
11229
11229
  i64.const 4
11230
11230
  i64.div_s
11231
- br $__inlined_func$src/ops/number-theory/carmichaelPrimePower$28
11231
+ br $__inlined_func$src/ops/number-theory/carmichaelPrimePower$27
11232
11232
  end
11233
11233
  local.get $2
11234
11234
  i64.const 1
@@ -11947,7 +11947,7 @@
11947
11947
  f64.const nan:0x8000000000000
11948
11948
  return
11949
11949
  end
11950
- block $__inlined_func$src/ops/number-theory/modInverse$29 (result i64)
11950
+ block $__inlined_func$src/ops/number-theory/modInverse$28 (result i64)
11951
11951
  i64.const 0
11952
11952
  local.set $3
11953
11953
  local.get $8
@@ -12004,7 +12004,7 @@
12004
12004
  local.get $4
12005
12005
  i64.const 1
12006
12006
  i64.ne
12007
- br_if $__inlined_func$src/ops/number-theory/modInverse$29
12007
+ br_if $__inlined_func$src/ops/number-theory/modInverse$28
12008
12008
  drop
12009
12009
  local.get $5
12010
12010
  local.get $7
@@ -13623,7 +13623,7 @@
13623
13623
  i32.and
13624
13624
  select
13625
13625
  local.set $1
13626
- block $__inlined_func$src/ops/polynomial/polyDerivative$66
13626
+ block $__inlined_func$src/ops/polynomial/polyDerivative$65
13627
13627
  local.get $4
13628
13628
  i32.load offset=12
13629
13629
  i32.const 1
@@ -13632,7 +13632,7 @@
13632
13632
  f64.const 0
13633
13633
  call $src/ops/polynomial/single
13634
13634
  local.set $0
13635
- br $__inlined_func$src/ops/polynomial/polyDerivative$66
13635
+ br $__inlined_func$src/ops/polynomial/polyDerivative$65
13636
13636
  end
13637
13637
  local.get $4
13638
13638
  i32.load offset=12
@@ -18912,7 +18912,7 @@
18912
18912
  )
18913
18913
  (func $src/ops/complex-ops/complex_reciprocal (param $0 i32) (result i32)
18914
18914
  (local $1 f64)
18915
- block $__inlined_func$src/types/complex/Complex#reciprocal$229 (result i32)
18915
+ block $__inlined_func$src/types/complex/Complex#reciprocal$228 (result i32)
18916
18916
  local.get $0
18917
18917
  f64.load
18918
18918
  local.get $0
@@ -18931,7 +18931,7 @@
18931
18931
  f64.const nan:0x8000000000000
18932
18932
  f64.const nan:0x8000000000000
18933
18933
  call $src/types/complex/Complex#constructor
18934
- br $__inlined_func$src/types/complex/Complex#reciprocal$229
18934
+ br $__inlined_func$src/types/complex/Complex#reciprocal$228
18935
18935
  end
18936
18936
  local.get $0
18937
18937
  f64.load
@@ -19013,7 +19013,7 @@
19013
19013
  (func $src/ops/complex-ops/complex_pow (param $0 i32) (param $1 f64) (result i32)
19014
19014
  (local $2 f64)
19015
19015
  (local $3 f64)
19016
- block $__inlined_func$src/types/complex/Complex#powReal$120 (result i32)
19016
+ block $__inlined_func$src/types/complex/Complex#powReal$119 (result i32)
19017
19017
  local.get $1
19018
19018
  f64.const 0
19019
19019
  f64.eq
@@ -19021,7 +19021,7 @@
19021
19021
  f64.const 1
19022
19022
  f64.const 0
19023
19023
  call $src/types/complex/Complex#constructor
19024
- br $__inlined_func$src/types/complex/Complex#powReal$120
19024
+ br $__inlined_func$src/types/complex/Complex#powReal$119
19025
19025
  end
19026
19026
  local.get $0
19027
19027
  call $src/types/complex/Complex#abs
@@ -24634,7 +24634,7 @@
24634
24634
  if
24635
24635
  local.get $3
24636
24636
  local.get $1
24637
- block $__inlined_func$src/special/_airyAi$213 (result f64)
24637
+ block $__inlined_func$src/special/_airyAi$212 (result f64)
24638
24638
  local.get $0
24639
24639
  local.get $1
24640
24640
  call $~lib/typedarray/Float64Array#__get
@@ -24645,7 +24645,7 @@
24645
24645
  local.get $2
24646
24646
  i32.const 1
24647
24647
  call $src/special/_airyAsymptotePos
24648
- br $__inlined_func$src/special/_airyAi$213
24648
+ br $__inlined_func$src/special/_airyAi$212
24649
24649
  end
24650
24650
  local.get $2
24651
24651
  f64.const -5
@@ -24654,7 +24654,7 @@
24654
24654
  local.get $2
24655
24655
  i32.const 1
24656
24656
  call $src/special/_airyAsymptoteNeg
24657
- br $__inlined_func$src/special/_airyAi$213
24657
+ br $__inlined_func$src/special/_airyAi$212
24658
24658
  end
24659
24659
  local.get $2
24660
24660
  call $src/special/_airyAiSeries
@@ -24827,7 +24827,7 @@
24827
24827
  if
24828
24828
  local.get $3
24829
24829
  local.get $1
24830
- block $__inlined_func$src/special/_airyBi$214 (result f64)
24830
+ block $__inlined_func$src/special/_airyBi$213 (result f64)
24831
24831
  local.get $0
24832
24832
  local.get $1
24833
24833
  call $~lib/typedarray/Float64Array#__get
@@ -24838,7 +24838,7 @@
24838
24838
  local.get $2
24839
24839
  i32.const 0
24840
24840
  call $src/special/_airyAsymptotePos
24841
- br $__inlined_func$src/special/_airyBi$214
24841
+ br $__inlined_func$src/special/_airyBi$213
24842
24842
  end
24843
24843
  local.get $2
24844
24844
  f64.const -5
@@ -24847,7 +24847,7 @@
24847
24847
  local.get $2
24848
24848
  i32.const 0
24849
24849
  call $src/special/_airyAsymptoteNeg
24850
- br $__inlined_func$src/special/_airyBi$214
24850
+ br $__inlined_func$src/special/_airyBi$213
24851
24851
  end
24852
24852
  local.get $2
24853
24853
  call $src/special/_airyBiSeries
@@ -26244,7 +26244,7 @@
26244
26244
  if
26245
26245
  local.get $5
26246
26246
  local.get $3
26247
- block $__inlined_func$src/special/_ellipticFIncomplete$215 (result f64)
26247
+ block $__inlined_func$src/special/_ellipticFIncomplete$214 (result f64)
26248
26248
  local.get $0
26249
26249
  local.get $3
26250
26250
  call $~lib/typedarray/Float64Array#__get
@@ -26257,7 +26257,7 @@
26257
26257
  local.get $6
26258
26258
  f64.const 0
26259
26259
  f64.eq
26260
- br_if $__inlined_func$src/special/_ellipticFIncomplete$215
26260
+ br_if $__inlined_func$src/special/_ellipticFIncomplete$214
26261
26261
  drop
26262
26262
  local.get $6
26263
26263
  call $~lib/math/NativeMath.sin
@@ -26276,7 +26276,7 @@
26276
26276
  local.tee $7
26277
26277
  f64.const 0
26278
26278
  f64.lt
26279
- br_if $__inlined_func$src/special/_ellipticFIncomplete$215
26279
+ br_if $__inlined_func$src/special/_ellipticFIncomplete$214
26280
26280
  drop
26281
26281
  local.get $2
26282
26282
  local.get $6
@@ -26325,7 +26325,7 @@
26325
26325
  if
26326
26326
  local.get $5
26327
26327
  local.get $3
26328
- block $__inlined_func$src/special/_ellipticEIncomplete$216 (result f64)
26328
+ block $__inlined_func$src/special/_ellipticEIncomplete$215 (result f64)
26329
26329
  local.get $0
26330
26330
  local.get $3
26331
26331
  call $~lib/typedarray/Float64Array#__get
@@ -26338,7 +26338,7 @@
26338
26338
  local.get $7
26339
26339
  f64.const 0
26340
26340
  f64.eq
26341
- br_if $__inlined_func$src/special/_ellipticEIncomplete$216
26341
+ br_if $__inlined_func$src/special/_ellipticEIncomplete$215
26342
26342
  drop
26343
26343
  local.get $7
26344
26344
  call $~lib/math/NativeMath.sin
@@ -26361,7 +26361,7 @@
26361
26361
  local.tee $7
26362
26362
  f64.const 0
26363
26363
  f64.lt
26364
- br_if $__inlined_func$src/special/_ellipticEIncomplete$216
26364
+ br_if $__inlined_func$src/special/_ellipticEIncomplete$215
26365
26365
  drop
26366
26366
  local.get $2
26367
26367
  local.get $9
@@ -26422,7 +26422,7 @@
26422
26422
  if
26423
26423
  local.get $6
26424
26424
  local.get $4
26425
- block $__inlined_func$src/special/_ellipticPiIncomplete$217 (result f64)
26425
+ block $__inlined_func$src/special/_ellipticPiIncomplete$216 (result f64)
26426
26426
  local.get $0
26427
26427
  local.get $4
26428
26428
  call $~lib/typedarray/Float64Array#__get
@@ -26439,7 +26439,7 @@
26439
26439
  local.get $8
26440
26440
  f64.const 0
26441
26441
  f64.eq
26442
- br_if $__inlined_func$src/special/_ellipticPiIncomplete$217
26442
+ br_if $__inlined_func$src/special/_ellipticPiIncomplete$216
26443
26443
  drop
26444
26444
  local.get $8
26445
26445
  call $~lib/math/NativeMath.sin
@@ -26471,7 +26471,7 @@
26471
26471
  f64.const 0
26472
26472
  f64.le
26473
26473
  i32.or
26474
- br_if $__inlined_func$src/special/_ellipticPiIncomplete$217
26474
+ br_if $__inlined_func$src/special/_ellipticPiIncomplete$216
26475
26475
  drop
26476
26476
  local.get $3
26477
26477
  local.get $8
@@ -29418,21 +29418,5 @@
29418
29418
  (func $~start
29419
29419
  i32.const 1836
29420
29420
  global.set $~lib/rt/stub/offset
29421
- f64.const 0
29422
- f64.const 0
29423
- call $src/types/complex/Complex#constructor
29424
- drop
29425
- f64.const 1
29426
- f64.const 0
29427
- call $src/types/complex/Complex#constructor
29428
- drop
29429
- f64.const 0
29430
- f64.const 1
29431
- call $src/types/complex/Complex#constructor
29432
- drop
29433
- f64.const -1
29434
- f64.const 0
29435
- call $src/types/complex/Complex#constructor
29436
- drop
29437
29421
  )
29438
29422
  )
@@ -1,4 +1,4 @@
1
1
  {
2
- "mathts-debug.wasm": "sha384-GGkKbOhPCYn0eHYamRsLj0Jhsw53Eq9/xSph6G/dOPy39sAM546lEJXElWXQcyXQ",
3
- "mathts.wasm": "sha384-eSck1dw9Rtu8oUAQ/0GMpC1L4bhAPNVS72581QGAyd1xDlRvonQT/XA2RZjpxghB"
2
+ "mathts-debug.wasm": "sha384-2XY5Is1QXa0uDoKvRI7PxiFVjuw7kkUrwdG/4uc5+4ggMisxnpC/mjY2TN2wvKTR",
3
+ "mathts.wasm": "sha384-q4RGhtVhsLmeCfG5lYpL70f51laygEpfcKGuxKWFnoC9iSXZPXMUEYE9V8W8gYZu"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielsimonjr/mathts-wasm",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "MathTS WebAssembly module - high-performance numerical computing",
5
5
  "type": "module",
6
6
  "main": "build/mathts.js",