diff options
Diffstat (limited to 'MultiSource/Benchmarks/DOE-ProxyApps-C/CoMD/memUtils.h')
-rw-r--r-- | MultiSource/Benchmarks/DOE-ProxyApps-C/CoMD/memUtils.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/MultiSource/Benchmarks/DOE-ProxyApps-C/CoMD/memUtils.h b/MultiSource/Benchmarks/DOE-ProxyApps-C/CoMD/memUtils.h deleted file mode 100644 index a732b779..00000000 --- a/MultiSource/Benchmarks/DOE-ProxyApps-C/CoMD/memUtils.h +++ /dev/null @@ -1,30 +0,0 @@ -/// \file -/// Wrappers for memory allocation. - -#ifndef _MEMUTILS_H_ -#define _MEMUTILS_H_ - -#include <stdlib.h> - -#define freeMe(s,element) {if(s->element) comdFree(s->element); s->element = NULL;} - -static void* comdMalloc(size_t iSize) -{ - return malloc(iSize); -} - -static void* comdCalloc(size_t num, size_t iSize) -{ - return calloc(num, iSize); -} - -static void* comdRealloc(void* ptr, size_t iSize) -{ - return realloc(ptr, iSize); -} - -static void comdFree(void *ptr) -{ - free(ptr); -} -#endif |