QtAlignedMalloc File Reference

Go to the source code of this file.

Macros

#define EIGEN_QTMALLOC_MODULE_H
 

Functions

void qFree (void *ptr)
 
void * qMalloc (std::size_t size)
 
void * qRealloc (void *ptr, std::size_t size)
 

Macro Definition Documentation

◆ EIGEN_QTMALLOC_MODULE_H

#define EIGEN_QTMALLOC_MODULE_H

Definition at line 9 of file QtAlignedMalloc.

Function Documentation

◆ qFree()

void qFree ( void *  ptr)

Definition at line 22 of file QtAlignedMalloc.

23 {
25 }
void aligned_free(void *ptr)
Definition: Memory.h:232

◆ qMalloc()

void* qMalloc ( std::size_t  size)

Definition at line 17 of file QtAlignedMalloc.

18 {
20 }
void * aligned_malloc(std::size_t size)
Definition: Memory.h:207

◆ qRealloc()

void* qRealloc ( void *  ptr,
std::size_t  size 
)

Definition at line 27 of file QtAlignedMalloc.

28 {
29  void* newPtr = Eigen::internal::aligned_malloc(size);
30  std::memcpy(newPtr, ptr, size);
32  return newPtr;
33 }