diff options
| author | James Rowe <jroweboy@gmail.com> | 2018-01-20 00:48:02 -0700 |
|---|---|---|
| committer | James Rowe <jroweboy@gmail.com> | 2018-01-20 16:45:11 -0700 |
| commit | ea88c44eb871e09e2d5cb09b7e7be77a3010b414 (patch) | |
| tree | a2f695170d9a3e0e98cebf823087cdb65d5af00f /src/common/memory_util.cpp | |
| parent | 92197681ad4a3ee2f03c559689ddc2d9a0acf58c (diff) | |
Format: Run the new clang format on everything
Diffstat (limited to 'src/common/memory_util.cpp')
| -rw-r--r-- | src/common/memory_util.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/common/memory_util.cpp b/src/common/memory_util.cpp index c19729b21f..759ad02cae 100644 --- a/src/common/memory_util.cpp +++ b/src/common/memory_util.cpp @@ -40,11 +40,12 @@ void* AllocateExecutableMemory(size_t size, bool low) { if (low && (!map_hint)) map_hint = (char*)round_page(512 * 1024 * 1024); /* 0.5 GB rounded up to the next page */ #endif - void* ptr = mmap(map_hint, size, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_ANON | MAP_PRIVATE + void* ptr = mmap(map_hint, size, PROT_READ | PROT_WRITE | PROT_EXEC, + MAP_ANON | MAP_PRIVATE #if defined(ARCHITECTURE_X64) && defined(MAP_32BIT) - | (low ? MAP_32BIT : 0) + | (low ? MAP_32BIT : 0) #endif - , + , -1, 0); #endif /* defined(_WIN32) */ |
