Developer Guide and Reference

Contents

align_value

Provides the ability to add a pointer alignment value to a pointer typedef declaration.

Syntax

Windows* OS:
__declspec(align_value
(
alignment
)
)
Linux* OS:
__attribute__((align_value
(
alignment
)
)
)
Arguments
alignment
Specifies the alignment (8, 16, 32, 64, 128, 256,...) for what the pointer points to.
Description
This keyword can be added to a pointer typedef declaration to specify the alignment value of pointers declared for that pointer type.
This indicates to the compiler that the data referenced by the designated pointer is aligned by the indicated value, and the compiler can generate code based on that assumption. If this attribute is used incorrectly, and the data is not aligned to the designated value, the behavior is undefined.

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 manufactu