Aligns a pointer to the specified number of bytes.
void* ippAlignPtr(void* ptr, int alignBytes);
ptr |
Aligned pointer. |
alignBytes |
Number of bytes to align. Possible values are the powers of 2, that is, 2, 4, 8, 16 and so on. |
The function ippAlignPtr is declared in the ippcore.h file. This function returns a pointer ptr aligned to the specified number of bytes alignBytes. Possible values of alignBytes are powers of two. The function does not check the validity of this parameter.
Do not free the pointer returned by the function, but free the original pointer.
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.