aboutsummaryrefslogtreecommitdiff
path: root/xbmc/platform/posix/XMemUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/platform/posix/XMemUtils.h')
-rw-r--r--xbmc/platform/posix/XMemUtils.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/xbmc/platform/posix/XMemUtils.h b/xbmc/platform/posix/XMemUtils.h
new file mode 100644
index 0000000000..38373ef4f8
--- /dev/null
+++ b/xbmc/platform/posix/XMemUtils.h
@@ -0,0 +1,19 @@
+/*
+ * Copyright (C) 2005-2018 Team Kodi
+ * This file is part of Kodi - https://kodi.tv
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * See LICENSES/README.md for more information.
+ */
+
+#pragma once
+
+#include "PlatformDefs.h"
+
+// aligned memory allocation and free. memory returned will be aligned to "alignTo" bytes.
+// this is a linux (actually platform free) implementation of the win32 CRT methods _aligned_malloc and _aligned_free.
+void *_aligned_malloc(size_t s, size_t alignTo);
+void _aligned_free(void *p) ;
+
+void GlobalMemoryStatusEx(LPMEMORYSTATUSEX lpBuffer);
+