Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
qmalloc.cpp File Reference
#include "qmalloc.h"
#include "qplatformdefs.h"
#include <stdlib.h>
#include <string.h>
+ Include dependency graph for qmalloc.cpp:

Go to the source code of this file.

Functions

QT_BEGIN_NAMESPACE voidqMallocAligned (size_t size, size_t alignment)
 
voidqReallocAligned (void *oldptr, size_t newsize, size_t oldsize, size_t alignment)
 
void qFreeAligned (void *ptr)
 

Function Documentation

◆ qFreeAligned()

void qFreeAligned ( void ptr)

Definition at line 71 of file qmalloc.cpp.

References ptr().

Referenced by QContiguousCacheData::freeData(), and qMapDeallocate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qMallocAligned()

QT_BEGIN_NAMESPACE void * qMallocAligned ( size_t  size,
size_t  alignment 
)

Definition at line 17 of file qmalloc.cpp.

References alignment, and qReallocAligned().

Referenced by QContiguousCacheData::allocateData(), and qMapAllocate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qReallocAligned()

void * qReallocAligned ( void oldptr,
size_t  newsize,
size_t  oldsize,
size_t  alignment 
)

Definition at line 22 of file qmalloc.cpp.

References alignment, oldsize, and qMin().

Referenced by qMallocAligned().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: