Intel® Integrated Performance Primitives (Intel® IPP) Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: GUID-8E974489-500B-49EA-8977-0A123F559D65
Visible to Intel only — GUID: GUID-8E974489-500B-49EA-8977-0A123F559D65
AlignPtr
Aligns a pointer to the specified number of bytes.
Syntax
void* ippAlignPtr(void* ptr, int alignBytes);
Include Files
ippcore.h
Parameters
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. |
Description
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.