Family Day update
This commit is contained in:
parent
aac6731f2c
commit
9ad63ea473
2442 changed files with 39761 additions and 8255 deletions
16
Task/Factorial/WebAssembly/factorial.webassembly
Normal file
16
Task/Factorial/WebAssembly/factorial.webassembly
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
(module
|
||||
(func $fac (param f64) (result f64)
|
||||
get_local 0
|
||||
f64.const 1
|
||||
f64.lt
|
||||
if (result f64)
|
||||
f64.const 1
|
||||
else
|
||||
get_local 0
|
||||
get_local 0
|
||||
f64.const 1
|
||||
f64.sub
|
||||
call $fac
|
||||
f64.mul
|
||||
end)
|
||||
(export "fac" (func $fac)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue