make getPageSize return ux
This commit is contained in:
parent
559ccae9cc
commit
0106f04495
@ -3,7 +3,7 @@
|
||||
|
||||
#include "../core.h"
|
||||
|
||||
usz getPageSize(void);
|
||||
ux getPageSize(void);
|
||||
static u64 prepAllocSize(u64 sz) {
|
||||
u64 psz = getPageSize();
|
||||
u64 minTotPad = ALLOC_PADDING*2 + 128;
|
||||
|
||||
2
src/vm.c
2
src/vm.c
@ -1166,7 +1166,7 @@ B block_decompose(B x) { return m_hvec2(m_i32(1), x); }
|
||||
STATIC_GLOBAL usz pageSizeV;
|
||||
#endif
|
||||
|
||||
usz getPageSize() {
|
||||
ux getPageSize() {
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
#if !NO_MMAP
|
||||
#error "Windows builds must have NO_MMAP=1"
|
||||
|
||||
2
src/vm.h
2
src/vm.h
@ -246,7 +246,7 @@ NOINLINE B vm_fmtPoint(B src, B prepend, B path, usz cs, usz ce); // consumes pr
|
||||
NOINLINE void printErrMsg(B msg);
|
||||
NOINLINE void unwindEnv(Env* envNew); // envNew==envStart-1 for emptying the env stack
|
||||
NOINLINE void unwindCompiler(void); // unwind to the env of the invocation of the compiler; UB when not in compiler!
|
||||
usz getPageSize(void);
|
||||
ux getPageSize(void);
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user