Go to the source code of this file.
Macros | |
#define | xsMathFree(p) xsAlignedFree(p) |
#define | xsMathMalloc(n) xsAlignedMalloc(n) |
#define | xsMathRealloc(p, n) xsAlignedRealloc(p,n) |
Functions | |
XSTYPES_DLL_API void | xsAlignedFree (void *ptr) |
Frees the (aligned) memory pointed to by ptr, optionally tracking the allocation. More... | |
XSTYPES_DLL_API void * | xsAlignedMalloc (size_t sz) |
Allocates sz bytes of memory on a 16 byte boundary, optionally tracking the allocation. More... | |
XSTYPES_DLL_API void * | xsAlignedRealloc (void *ptr, size_t sz) |
Reallocates sz bytes of memory on a 16 byte boundary, optionally tracking the allocation. More... | |
XSTYPES_DLL_API void | xsFree (void *ptr) |
Frees the memory pointed to by ptr, optionally tracking the allocation. More... | |
XSTYPES_DLL_API void * | xsMalloc (size_t sz) |
_MSC_VER More... | |
XSTYPES_DLL_API void * | xsRealloc (void *ptr, size_t sz) |
Reallocates sz bytes of memory, optionally tracking the allocation. More... | |
#define xsMathFree | ( | p | ) | xsAlignedFree(p) |
Definition at line 92 of file xsmalloc.h.
#define xsMathMalloc | ( | n | ) | xsAlignedMalloc(n) |
Definition at line 84 of file xsmalloc.h.
#define xsMathRealloc | ( | p, | |
n | |||
) | xsAlignedRealloc(p,n) |
Definition at line 88 of file xsmalloc.h.
XSTYPES_DLL_API void xsAlignedFree | ( | void * | ptr | ) |
Frees the (aligned) memory pointed to by ptr, optionally tracking the allocation.
Definition at line 204 of file xsmalloc.c.
XSTYPES_DLL_API void* xsAlignedMalloc | ( | size_t | sz | ) |
Allocates sz bytes of memory on a 16 byte boundary, optionally tracking the allocation.
Definition at line 169 of file xsmalloc.c.
XSTYPES_DLL_API void* xsAlignedRealloc | ( | void * | ptr, |
size_t | sz | ||
) |
Reallocates sz bytes of memory on a 16 byte boundary, optionally tracking the allocation.
Definition at line 185 of file xsmalloc.c.
XSTYPES_DLL_API void xsFree | ( | void * | ptr | ) |
Frees the memory pointed to by ptr, optionally tracking the allocation.
Definition at line 159 of file xsmalloc.c.
XSTYPES_DLL_API void* xsMalloc | ( | size_t | sz | ) |
_MSC_VER
Allocates sz bytes of memory, optionally tracking the allocation
Definition at line 124 of file xsmalloc.c.
XSTYPES_DLL_API void* xsRealloc | ( | void * | ptr, |
size_t | sz | ||
) |
Reallocates sz bytes of memory, optionally tracking the allocation.
Definition at line 140 of file xsmalloc.c.