Macros | Functions
xsmalloc.h File Reference
#include "xstypesconfig.h"
#include <stddef.h>
Include dependency graph for xsmalloc.h:
This graph shows which files directly or indirectly include this file:

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...
 

Macro Definition Documentation

◆ xsMathFree

#define xsMathFree (   p)    xsAlignedFree(p)

Definition at line 92 of file xsmalloc.h.

◆ xsMathMalloc

#define xsMathMalloc (   n)    xsAlignedMalloc(n)

Definition at line 84 of file xsmalloc.h.

◆ xsMathRealloc

#define xsMathRealloc (   p,
 
)    xsAlignedRealloc(p,n)

Definition at line 88 of file xsmalloc.h.

Function Documentation

◆ xsAlignedFree()

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.

◆ xsAlignedMalloc()

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.

◆ xsAlignedRealloc()

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.

◆ xsFree()

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.

◆ xsMalloc()

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.

◆ xsRealloc()

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.



xsens_mti_driver
Author(s):
autogenerated on Sun Sep 3 2023 02:43:21