Blender V5.3
aligned_malloc.cpp File Reference
#include "util/aligned_malloc.h"
#include "util/guarded_allocator.h"
#include <cassert>
#include <malloc.h>
#include <sys/mman.h>

Go to the source code of this file.

Functions

CCL_NAMESPACE_BEGIN void * util_aligned_malloc (const size_t size, const int alignment)
void * util_page_aligned_malloc (const size_t size)
void util_aligned_free (void *ptr, const size_t size)
void util_page_aligned_free (void *ptr, const size_t size)

Function Documentation

◆ util_aligned_free()

void util_aligned_free ( void * ptr,
const size_t size )

◆ util_aligned_malloc()

◆ util_page_aligned_free()

void util_page_aligned_free ( void * ptr,
const size_t size )

Definition at line 112 of file aligned_malloc.cpp.

References size(), util_guarded_mem_free(), and util_page_aligned_free().

Referenced by util_page_aligned_free().

◆ util_page_aligned_malloc()

void * util_page_aligned_malloc ( const size_t size)

Definition at line 63 of file aligned_malloc.cpp.

References L, size(), util_guarded_mem_alloc(), and util_page_aligned_malloc().

Referenced by util_page_aligned_malloc().