diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2020-06-01 21:54:54 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-06-09 00:22:17 -0400 |
| commit | 601e831f1d15ba5c8f89fbab265a72bfabb6af96 (patch) | |
| tree | 2883351a9ebaa4759b239bff24090133e5f8961c /lib/std | |
| parent | ce3f0077cf3c5ae8edc116177f2f3d33258be9f7 (diff) | |
| download | zig-601e831f1d15ba5c8f89fbab265a72bfabb6af96.tar.gz zig-601e831f1d15ba5c8f89fbab265a72bfabb6af96.zip | |
Add builtin for llvm.wasm.memory.grow.i32 intrinsic
This will allow the developer to request additional memory pages
from the runtime to be allocated for the Wasm app. Typical usage:
```zig
var wasm_pages = @wasmMemorySize();
@wasmMemoryGrow(1);
@import("std").debug.assert((wasm_pages + 1) == @wasmMemorySize());
```
Diffstat (limited to 'lib/std')
0 files changed, 0 insertions, 0 deletions
