Developer Reference

  • 2020
  • 07/15/2020
  • Public Content
Contents

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.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804