mirror of
https://github.com/Noratrieb/riverdelta.git
synced 2026-01-14 08:25:02 +01:00
24 lines
470 B
Text
24 lines
470 B
Text
mod alloc;
|
|
|
|
// The function parameters are not actually unused.
|
|
function memcpy(_dst: I32, _src: I32, _n: I32) =
|
|
___asm(
|
|
__locals(),
|
|
"local.get 2",
|
|
"local.get 1",
|
|
"local.get 0",
|
|
"memory.copy",
|
|
);
|
|
|
|
function memoryGrow(_size: I32): I32 =
|
|
___asm(
|
|
__locals(),
|
|
"local.get 0",
|
|
"memory.grow",
|
|
);
|
|
|
|
function memorySize(): I32 =
|
|
___asm(
|
|
__locals(),
|
|
"memory.size",
|
|
);
|