diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-01-16 10:20:16 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-01-16 10:20:16 +0100 |
| commit | e5649d90e7deb3e7388475d62f4174b4bd64063f (patch) | |
| tree | 896e3b02944878922793473fa684e32047fd8e32 /src/include | |
| parent | d22e6f28a1a155737b57e7c6a3c1c29136bdb66d (diff) | |
| download | box64-e5649d90e7deb3e7388475d62f4174b4bd64063f.tar.gz box64-e5649d90e7deb3e7388475d62f4174b4bd64063f.zip | |
Round size to pagesize on the tracked memory
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/custommem.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/custommem.h b/src/include/custommem.h index 38d63702..df1d652a 100644 --- a/src/include/custommem.h +++ b/src/include/custommem.h @@ -16,6 +16,8 @@ void customFree(void* p); #define krealloc customRealloc #define kfree customFree +#define ALIGN(p) (((p)+box64_pagesize-1)&~(box64_pagesize-1)) + #ifdef DYNAREC typedef struct dynablock_s dynablock_t; // custom protection flag to mark Page that are Write protected for Dynarec purpose |