Macros | Functions
xsmalloc.c File Reference
#include "xsmalloc.h"
#include <malloc.h>
#include <stdlib.h>
Include dependency graph for xsmalloc.c:

Go to the source code of this file.

Macros

#define _aligned_free(_Memory)   free(_Memory)
 
#define _aligned_realloc(p, n, a)   realloc(p, n)
 
#define XSENS_ASSERT_MALLOC(x)
 

Functions

void *__cdecl _aligned_malloc (size_t _Size, size_t _Alignment)
 
void xsAlignedFree (void *ptr)
 Frees the (aligned) memory pointed to by ptr, optionally tracking the allocation. More...
 
void * xsAlignedMalloc (size_t sz)
 Allocates sz bytes of memory on a 16 byte boundary, optionally tracking the allocation. More...
 
void * xsAlignedRealloc (void *ptr, size_t sz)
 Reallocates sz bytes of memory on a 16 byte boundary, optionally tracking the allocation. More...
 
void xsFree (void *ptr)
 Frees the memory pointed to by ptr, optionally tracking the allocation. More...
 
void * xsMalloc (size_t sz)
 _MSC_VER More...
 
void * xsRealloc (void *ptr, size_t sz)
 Reallocates sz bytes of memory, optionally tracking the allocation. More...
 

Detailed Description

This file contains platform-specific memory allocation routines

Definition in file xsmalloc.c.

Macro Definition Documentation

◆ _aligned_free

#define _aligned_free (   _Memory)    free(_Memory)

Definition at line 118 of file xsmalloc.c.

◆ _aligned_realloc

#define _aligned_realloc (   p,
  n,
 
)    realloc(p, n)

Definition at line 117 of file xsmalloc.c.

◆ XSENS_ASSERT_MALLOC

#define XSENS_ASSERT_MALLOC (   x)

Definition at line 80 of file xsmalloc.c.

Function Documentation

◆ _aligned_malloc()

void* __cdecl _aligned_malloc ( size_t  _Size,
size_t  _Alignment 
)

Definition at line 106 of file xsmalloc.c.

◆ xsAlignedFree()

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()

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()

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()

void xsFree ( void *  ptr)

Frees the memory pointed to by ptr, optionally tracking the allocation.

Definition at line 159 of file xsmalloc.c.

◆ xsMalloc()

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()

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