Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Common/Alloc.h')
-rwxr-xr-xCommon/Alloc.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/Common/Alloc.h b/Common/Alloc.h
index 1a1caa8e..d444f631 100755
--- a/Common/Alloc.h
+++ b/Common/Alloc.h
@@ -7,8 +7,23 @@
void *MyAlloc(size_t size) throw();
void MyFree(void *address) throw();
+
+#ifdef _WIN32
+
+bool SetLargePageSize();
+
+void *MidAlloc(size_t size) throw();
+void MidFree(void *address) throw();
void *BigAlloc(size_t size) throw();
void BigFree(void *address) throw();
-// void *BigAllocE(size_t size);
+
+#else
+
+#define MidAlloc(size) MyAlloc(size)
+#define MidFree(address) MyFree(address)
+#define BigAlloc(size) MyAlloc(size)
+#define BigFree(address) MyFree(address)
+
+#endif
#endif