Skip to content
Snippets Groups Projects
Commit d3382db2 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

add a macro with the actual alignment in bytes.

parent 186fee40
No related branches found
No related tags found
1 merge request!294Buffered cell_split
......@@ -19,9 +19,13 @@
#ifndef SWIFT_ALIGN_H
#define SWIFT_ALIGN_H
/**
* @brief The default struct alignment in SWIFT.
*/
#define SWIFT_STRUCT_ALIGNMENT 32
/**
* @brief Defines alignment of structures
*/
#define SWIFT_STRUCT_ALIGN __attribute__((aligned(32)))
#define SWIFT_STRUCT_ALIGN __attribute__((aligned(SWIFT_STRUCT_ALIGNMENT)))
#endif /* SWIFT_ALIGN_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment