Alignment.h
Go to the documentation of this file.
1 //=================================================================================================
33 //=================================================================================================
34 
35 #ifndef _BLAZE_SYSTEM_ALIGNMENT_H_
36 #define _BLAZE_SYSTEM_ALIGNMENT_H_
37 
38 
39 //=================================================================================================
40 //
41 // ALIGNMENT MACRO
42 //
43 //=================================================================================================
44 
45 //*************************************************************************************************
52 // GNU, Intel, PGI, and IBM C++ compiler
53 #if (defined __GNUC__) || (defined __PGI) || (defined __IBMCPP__)
54 # define BLAZE_ALIGN( n ) __attribute__((aligned(n)))
55 
56 // Microsoft Visual C++ compiler
57 #elif (defined _MSC_VER)
58 # define BLAZE_ALIGN( n ) __declspec(align(n))
59 
60 // Default case for other compilers
61 #else
62 # error Compiler-specific alignment undefined!
63 #endif
64 
66 //*************************************************************************************************
67 
68 #endif