Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
9
Task/Even-or-odd/WebAssembly/even-or-odd.wasm
Normal file
9
Task/Even-or-odd/WebAssembly/even-or-odd.wasm
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
(module
|
||||
;; function isOdd: returns 1 if its argument is odd, 0 if it is even.
|
||||
(func $isOdd (param $n i32) (result i32)
|
||||
get_local $n
|
||||
i32.const 1
|
||||
i32.and ;; computes (n & 1), i.e. returns low bit of n
|
||||
)
|
||||
(export "isOdd" (func $isOdd))
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue