Functions for memory management.
More...
Functions for memory management.
void * SimdAllocate |
( |
size_t |
size, |
|
|
size_t |
align |
|
) |
| |
Allocates aligned memory block.
- Note
- The memory allocated by this function is must be deleted by function SimdFree.
- Parameters
-
[in] | size | - a size of memory block. |
[in] | align | - a required alignment of memory block. |
- Returns
- a pointer to allocated memory.
void SimdFree |
( |
void * |
ptr | ) |
|
Frees aligned memory block.
- Note
- This function frees a memory allocated by function SimdAllocate.
- Parameters
-
[in] | ptr | - a pointer to the memory to be deleted. |
size_t SimdAlign |
( |
size_t |
size, |
|
|
size_t |
align |
|
) |
| |
Gets aligned size.
- Parameters
-
[in] | size | - an original size. |
[in] | align | - a required alignment. |
- Returns
- an aligned size.
Gets alignment required for the most productive work of the Simd Library.
- Returns
- a required alignment.