mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-27 08:13:34 +01:00
Fix a bunch of compiler warnings, delete some unused code
This commit is contained in:
1 parent
ec6559537b
commit
c8457d39ed
9 files changed
+22
-63
No files matched your search
@@ -38,14 +38,14 @@
|
||||
#endif
|
||||
static int hint_location;
|
||||
#ifdef __APPLE__
|
||||
#define PAGE_MASK (4096-1)
|
||||
#define MEM_PAGE_MASK (4096-1)
|
||||
#elif defined(_WIN32)
|
||||
static SYSTEM_INFO sys_info;
|
||||
#define PAGE_MASK (uintptr_t)(sys_info.dwPageSize - 1)
|
||||
#define MEM_PAGE_MASK (uintptr_t)(sys_info.dwPageSize - 1)
|
||||
#else
|
||||
#define PAGE_MASK (getpagesize() - 1)
|
||||
#define MEM_PAGE_MASK (getpagesize() - 1)
|
||||
#endif
|
||||
#define round_page(x) ((((uintptr_t)(x)) + PAGE_MASK) & ~(PAGE_MASK))
|
||||
#define round_page(x) ((((uintptr_t)(x)) + MEM_PAGE_MASK) & ~(MEM_PAGE_MASK))
|
||||
#endif
|
||||
|
||||
#ifdef __SYMBIAN32__
|
||||
|
||||
Reference in new issue
Block a user