Skip to content

Commit d0f7475

Browse files
committed
Update Wasm source
1 parent 8483533 commit d0f7475

File tree

1 file changed

+71
-71
lines changed

1 file changed

+71
-71
lines changed

wasm.wat

Lines changed: 71 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -7,206 +7,206 @@
77
(export "get_high" (func $get_high))
88
(global $high (mut i32) (i32.const 0))
99
(func $get_high (result i32)
10-
(get_global $high)
10+
(global.get $high)
1111
)
1212
(func $mul (param $xl i32) (param $xh i32) (param $yl i32) (param $yh i32) (result i32)
1313
(local $result i64)
14-
(set_local $result
14+
(local.set $result
1515
(i64.mul
1616
(i64.or
17-
(i64.extend_u/i32
18-
(get_local $xl)
17+
(i64.extend_i32_u
18+
(local.get $xl)
1919
)
2020
(i64.shl
21-
(i64.extend_u/i32
22-
(get_local $xh)
21+
(i64.extend_i32_u
22+
(local.get $xh)
2323
)
2424
(i64.const 32)
2525
)
2626
)
2727
(i64.or
28-
(i64.extend_u/i32
29-
(get_local $yl)
28+
(i64.extend_i32_u
29+
(local.get $yl)
3030
)
3131
(i64.shl
32-
(i64.extend_u/i32
33-
(get_local $yh)
32+
(i64.extend_i32_u
33+
(local.get $yh)
3434
)
3535
(i64.const 32)
3636
)
3737
)
3838
)
3939
)
40-
(set_global $high
41-
(i32.wrap/i64
40+
(global.set $high
41+
(i32.wrap_i64
4242
(i64.shr_s
43-
(get_local $result)
43+
(local.get $result)
4444
(i64.const 32)
4545
)
4646
)
4747
)
48-
(i32.wrap/i64
49-
(get_local $result)
48+
(i32.wrap_i64
49+
(local.get $result)
5050
)
5151
)
5252
(func $div_s (param $xl i32) (param $xh i32) (param $yl i32) (param $yh i32) (result i32)
5353
(local $result i64)
54-
(set_local $result
54+
(local.set $result
5555
(i64.div_s
5656
(i64.or
57-
(i64.extend_u/i32
58-
(get_local $xl)
57+
(i64.extend_i32_u
58+
(local.get $xl)
5959
)
6060
(i64.shl
61-
(i64.extend_u/i32
62-
(get_local $xh)
61+
(i64.extend_i32_u
62+
(local.get $xh)
6363
)
6464
(i64.const 32)
6565
)
6666
)
6767
(i64.or
68-
(i64.extend_u/i32
69-
(get_local $yl)
68+
(i64.extend_i32_u
69+
(local.get $yl)
7070
)
7171
(i64.shl
72-
(i64.extend_u/i32
73-
(get_local $yh)
72+
(i64.extend_i32_u
73+
(local.get $yh)
7474
)
7575
(i64.const 32)
7676
)
7777
)
7878
)
7979
)
80-
(set_global $high
81-
(i32.wrap/i64
80+
(global.set $high
81+
(i32.wrap_i64
8282
(i64.shr_s
83-
(get_local $result)
83+
(local.get $result)
8484
(i64.const 32)
8585
)
8686
)
8787
)
88-
(i32.wrap/i64
89-
(get_local $result)
88+
(i32.wrap_i64
89+
(local.get $result)
9090
)
9191
)
9292
(func $div_u (param $xl i32) (param $xh i32) (param $yl i32) (param $yh i32) (result i32)
9393
(local $result i64)
94-
(set_local $result
94+
(local.set $result
9595
(i64.div_u
9696
(i64.or
97-
(i64.extend_u/i32
98-
(get_local $xl)
97+
(i64.extend_i32_u
98+
(local.get $xl)
9999
)
100100
(i64.shl
101-
(i64.extend_u/i32
102-
(get_local $xh)
101+
(i64.extend_i32_u
102+
(local.get $xh)
103103
)
104104
(i64.const 32)
105105
)
106106
)
107107
(i64.or
108-
(i64.extend_u/i32
109-
(get_local $yl)
108+
(i64.extend_i32_u
109+
(local.get $yl)
110110
)
111111
(i64.shl
112-
(i64.extend_u/i32
113-
(get_local $yh)
112+
(i64.extend_i32_u
113+
(local.get $yh)
114114
)
115115
(i64.const 32)
116116
)
117117
)
118118
)
119119
)
120-
(set_global $high
121-
(i32.wrap/i64
120+
(global.set $high
121+
(i32.wrap_i64
122122
(i64.shr_s
123-
(get_local $result)
123+
(local.get $result)
124124
(i64.const 32)
125125
)
126126
)
127127
)
128-
(i32.wrap/i64
129-
(get_local $result)
128+
(i32.wrap_i64
129+
(local.get $result)
130130
)
131131
)
132132
(func $rem_s (param $xl i32) (param $xh i32) (param $yl i32) (param $yh i32) (result i32)
133133
(local $result i64)
134-
(set_local $result
134+
(local.set $result
135135
(i64.rem_s
136136
(i64.or
137-
(i64.extend_u/i32
138-
(get_local $xl)
137+
(i64.extend_i32_u
138+
(local.get $xl)
139139
)
140140
(i64.shl
141-
(i64.extend_u/i32
142-
(get_local $xh)
141+
(i64.extend_i32_u
142+
(local.get $xh)
143143
)
144144
(i64.const 32)
145145
)
146146
)
147147
(i64.or
148-
(i64.extend_u/i32
149-
(get_local $yl)
148+
(i64.extend_i32_u
149+
(local.get $yl)
150150
)
151151
(i64.shl
152-
(i64.extend_u/i32
153-
(get_local $yh)
152+
(i64.extend_i32_u
153+
(local.get $yh)
154154
)
155155
(i64.const 32)
156156
)
157157
)
158158
)
159159
)
160-
(set_global $high
161-
(i32.wrap/i64
160+
(global.set $high
161+
(i32.wrap_i64
162162
(i64.shr_s
163-
(get_local $result)
163+
(local.get $result)
164164
(i64.const 32)
165165
)
166166
)
167167
)
168-
(i32.wrap/i64
169-
(get_local $result)
168+
(i32.wrap_i64
169+
(local.get $result)
170170
)
171171
)
172172
(func $rem_u (param $xl i32) (param $xh i32) (param $yl i32) (param $yh i32) (result i32)
173173
(local $result i64)
174-
(set_local $result
174+
(local.set $result
175175
(i64.rem_u
176176
(i64.or
177-
(i64.extend_u/i32
178-
(get_local $xl)
177+
(i64.extend_i32_u
178+
(local.get $xl)
179179
)
180180
(i64.shl
181-
(i64.extend_u/i32
182-
(get_local $xh)
181+
(i64.extend_i32_u
182+
(local.get $xh)
183183
)
184184
(i64.const 32)
185185
)
186186
)
187187
(i64.or
188-
(i64.extend_u/i32
189-
(get_local $yl)
188+
(i64.extend_i32_u
189+
(local.get $yl)
190190
)
191191
(i64.shl
192-
(i64.extend_u/i32
193-
(get_local $yh)
192+
(i64.extend_i32_u
193+
(local.get $yh)
194194
)
195195
(i64.const 32)
196196
)
197197
)
198198
)
199199
)
200-
(set_global $high
201-
(i32.wrap/i64
200+
(global.set $high
201+
(i32.wrap_i64
202202
(i64.shr_s
203-
(get_local $result)
203+
(local.get $result)
204204
(i64.const 32)
205205
)
206206
)
207207
)
208-
(i32.wrap/i64
209-
(get_local $result)
208+
(i32.wrap_i64
209+
(local.get $result)
210210
)
211211
)
212212
)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy