mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-15 17:05:03 +01:00
Remove memory intrinsics
This commit is contained in:
parent
9270f52e6b
commit
1e97275cf2
5 changed files with 15 additions and 19 deletions
|
|
@ -9,3 +9,16 @@ function memcpy(_dst: I32, _src: I32, _n: I32) =
|
|||
"local.get 0",
|
||||
"memory.copy",
|
||||
);
|
||||
|
||||
function memoryGrow(_size: I32): I32 =
|
||||
___asm(
|
||||
__locals(),
|
||||
"local.get 0",
|
||||
"memory.grow",
|
||||
);
|
||||
|
||||
function memorySize(): I32 =
|
||||
___asm(
|
||||
__locals(),
|
||||
"memory.size",
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue