1 #ifndef __XMEMUTILS__H__
2 #define __XMEMUTILS__H__
5 * Copyright (C) 2005-2013 Team XBMC
8 * This Program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2, or (at your option)
13 * This Program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with XBMC; see the file COPYING. If not, see
20 * <http://www.gnu.org/licenses/>.
24 #include "linux/PlatformDefs.h"
26 // aligned memory allocation and free. memory returned will be aligned to "alignTo" bytes.
27 // this is a linux (actually platfom free) implementation of the win32 CRT methods _aligned_malloc and _aligned_free.
28 void *_aligned_malloc(size_t s, size_t alignTo);
29 void _aligned_free(void *p) ;
31 void GlobalMemoryStatusEx(LPMEMORYSTATUSEX lpBuffer);