Added memalign
This commit is contained in:
@@ -8,6 +8,11 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "dusk.h"
|
#include "dusk.h"
|
||||||
|
|
||||||
|
#ifndef memalign
|
||||||
|
#define memalign(alignment, size) \
|
||||||
|
(posix_memalign((void**)&ptr, alignment, size) == 0 ? ptr : NULL)
|
||||||
|
#endif
|
||||||
|
|
||||||
static size_t MEMORY_POINTERS_IN_USE = 0;
|
static size_t MEMORY_POINTERS_IN_USE = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user