|
65 | 65 | (global $~lib/math/res128_hi (mut i64) (i64.const 0))
|
66 | 66 | (global $~lib/math/rempio2f_y (mut f64) (f64.const 0))
|
67 | 67 | (global $~lib/util/math/log_tail (mut f64) (f64.const 0))
|
68 |
| - (global $~lib/math/random_seeded (mut i32) (i32.const 0)) |
69 | 68 | (global $~lib/math/random_state0_64 (mut i64) (i64.const 0))
|
70 | 69 | (global $~lib/math/random_state1_64 (mut i64) (i64.const 0))
|
71 | 70 | (global $~lib/math/random_state0_32 (mut i32) (i32.const 0))
|
72 | 71 | (global $~lib/math/random_state1_32 (mut i32) (i32.const 0))
|
| 72 | + (global $~lib/math/random_seeded (mut i32) (i32.const 0)) |
73 | 73 | (global $~lib/math/NativeMath.sincos_sin (mut f64) (f64.const 0))
|
74 | 74 | (global $~lib/math/NativeMath.sincos_cos (mut f64) (f64.const 0))
|
75 | 75 | (memory $0 1)
|
|
214 | 214 | (data (i32.const 14289) "\a08\07\ae\"\d5?Y\c7d\81p\be.=\00\00\00\00\00\e0\e6?")
|
215 | 215 | (data (i32.const 14321) "\d0\c8S\f7{\d5?\ef@]\ee\ed\ad\1f=\00\00\00\00\00\c0\e6?")
|
216 | 216 | (data (i32.const 14353) "`Y\df\bd\d5\d5?\dce\a4\08*\0b\n\bd")
|
217 |
| - (data (i32.const 14380) ",") |
218 |
| - (data (i32.const 14392) "\01\00\00\00\18\00\00\00~\00l\00i\00b\00/\00m\00a\00t\00h\00.\00t\00s") |
219 | 217 | (export "memory" (memory $0))
|
220 | 218 | (start $~start)
|
221 | 219 | (func $~lib/math/NativeMath.scalbn (param $0 f64) (param $1 i32) (result f64)
|
|
8527 | 8525 | (func $~lib/math/NativeMath.seedRandom (param $0 i64)
|
8528 | 8526 | (local $1 i32)
|
8529 | 8527 | (local $2 i64)
|
8530 |
| - (local $3 i64) |
8531 |
| - (local $4 i32) |
8532 |
| - i32.const 1 |
8533 |
| - global.set $~lib/math/random_seeded |
| 8528 | + i64.const -7046029254386353131 |
| 8529 | + local.get $0 |
8534 | 8530 | local.get $0
|
| 8531 | + i64.eqz |
| 8532 | + select |
| 8533 | + local.tee $0 |
8535 | 8534 | i64.const 33
|
8536 | 8535 | i64.shr_u
|
8537 | 8536 | local.get $0
|
|
8552 | 8551 | i64.xor
|
8553 | 8552 | global.set $~lib/math/random_state0_64
|
8554 | 8553 | global.get $~lib/math/random_state0_64
|
8555 |
| - local.tee $3 |
8556 | 8554 | i64.const -1
|
8557 | 8555 | i64.xor
|
8558 | 8556 | local.tee $2
|
|
8608 | 8606 | i32.xor
|
8609 | 8607 | global.set $~lib/math/random_state0_32
|
8610 | 8608 | global.get $~lib/math/random_state0_32
|
8611 |
| - local.tee $4 |
8612 | 8609 | i32.const 1831565813
|
8613 | 8610 | i32.add
|
8614 | 8611 | local.tee $1
|
|
8639 | 8636 | local.get $1
|
8640 | 8637 | i32.xor
|
8641 | 8638 | global.set $~lib/math/random_state1_32
|
8642 |
| - global.get $~lib/math/random_state1_32 |
8643 |
| - i32.const 0 |
8644 |
| - i32.ne |
8645 |
| - i32.const 0 |
8646 |
| - local.get $4 |
8647 |
| - i32.const 0 |
8648 |
| - global.get $~lib/math/random_state1_64 |
8649 |
| - i64.const 0 |
8650 |
| - i64.ne |
8651 |
| - i32.const 0 |
8652 |
| - local.get $3 |
8653 |
| - i64.const 0 |
8654 |
| - i64.ne |
8655 |
| - select |
8656 |
| - select |
8657 |
| - select |
8658 |
| - i32.eqz |
8659 |
| - if |
8660 |
| - i32.const 0 |
8661 |
| - i32.const 14400 |
8662 |
| - i32.const 1421 |
8663 |
| - i32.const 5 |
8664 |
| - call $~lib/builtins/abort |
8665 |
| - unreachable |
8666 |
| - end |
| 8639 | + i32.const 1 |
| 8640 | + global.set $~lib/math/random_seeded |
8667 | 8641 | )
|
8668 | 8642 | (func $std/math/test_round (param $0 f64) (param $1 f64) (result i32)
|
8669 | 8643 | (local $2 f64)
|
|
0 commit comments