]> git.proxmox.com Git - wasi-libc.git/blobdiff - libc-bottom-half/headers/public/__macro_PAGESIZE.h
Merge the basics component into libc-bottom-half. (#199)
[wasi-libc.git] / libc-bottom-half / headers / public / __macro_PAGESIZE.h
diff --git a/libc-bottom-half/headers/public/__macro_PAGESIZE.h b/libc-bottom-half/headers/public/__macro_PAGESIZE.h
new file mode 100644 (file)
index 0000000..0243c98
--- /dev/null
@@ -0,0 +1,11 @@
+#ifndef __wasilibc___macro_PAGESIZE_h
+#define __wasilibc___macro_PAGESIZE_h
+
+/*
+ * The page size in WebAssembly is fixed at 64 KiB. If this ever changes,
+ * it's expected that applications will need to opt in, so we can change
+ * this.
+ */
+#define PAGESIZE (0x10000)
+
+#endif