RENEWLab  1.1.0
RENEW project
Memory allocation
Collaboration diagram for Memory allocation:

Functions

void * mufft_alloc (size_t size)
 Allocate aligned storage suitable for muFFT. Must be freed with mufft_free. More...
 
void * mufft_calloc (size_t size)
 Allocate zeroed out aligned storage suitable for muFFT. Same as calloc(), but aligned. Must be freed with mufft_free. More...
 
void mufft_free (void *ptr)
 Free previously allocated storage obtained from mufft_alloc or mufft_calloc. More...
 

Detailed Description

Function Documentation

◆ mufft_alloc()

void* mufft_alloc ( size_t  size)

Allocate aligned storage suitable for muFFT. Must be freed with mufft_free.

Parameters
sizeNumber of bytes to allocate.
Returns
Allocated storage, or NULL.
Here is the caller graph for this function:

◆ mufft_calloc()

void* mufft_calloc ( size_t  size)

Allocate zeroed out aligned storage suitable for muFFT. Same as calloc(), but aligned. Must be freed with mufft_free.

Parameters
sizeNumber of bytes to allocate.
Returns
Allocated storage, or NULL.

◆ mufft_free()

void mufft_free ( void *  ptr)

Free previously allocated storage obtained from mufft_alloc or mufft_calloc.

Parameters
ptrPointer to be freed. Can be NULL in which case nothing happens.
Here is the caller graph for this function: