![]() |
PhoenixHardware
0.2.0
Tools to get hardware information
|
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include "phoenix_allocAlignedVector.h"
#include <malloc.h>
Go to the source code of this file.
Functions | |
void * | phoenix_allocAlignedTab (size_t sizeOfVectorInBytes, size_t alignementInBytes) |
Alloc an aligned vector. | |
void | phoenix_freeAlignedVector (void *ptr) |
Free the aligned vector. | |
void * phoenix_allocAlignedTab | ( | size_t | sizeOfVectorInBytes, |
size_t | alignementInBytes ) |
Alloc an aligned vector.
sizeOfVectorInBytes | : size of the vector xe want to allocate |
alignementInBytes | : alignement of the vector we want to allocate |
Definition at line 35 of file phoenix_allocAlignedVector.cpp.
Referenced by phoenix_newAlignedTab(), and phoenix_template_alloc().
void phoenix_freeAlignedVector | ( | void * | ptr | ) |
Free the aligned vector.
ptr | : pointor we want to free |
Usage : void* mem = phoenix_allocAlignedVector(alignedVector, sizeOfVectorInBytes, alignementInBytes); ... Using of alignedVector pointor ... phoenix_freeAlignedVector(mem);
Definition at line 49 of file phoenix_allocAlignedVector.cpp.
Referenced by PAlignedAllocator< T >::deallocate().