All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Alignment.h
Go to the documentation of this file.
1 //=================================================================================================
20 //=================================================================================================
21 
22 #ifndef _BLAZE_SYSTEM_ALIGNMENT_H_
23 #define _BLAZE_SYSTEM_ALIGNMENT_H_
24 
25 
26 //=================================================================================================
27 //
28 // ALIGNMENT MACRO
29 //
30 //=================================================================================================
31 
32 //*************************************************************************************************
39 // GNU, Intel, PGI, and IBM C++ compiler
40 #if (defined __GNUC__) || (defined __PGI) || (defined __IBMCPP__)
41 # define BLAZE_ALIGN( n ) __attribute__((aligned(n)))
42 
43 // Microsoft Visual C++ compiler
44 #elif (defined _MSC_VER)
45 # define BLAZE_ALIGN( n ) __declspec(align(n))
46 
47 // Default case for other compilers
48 #else
49 # error Compiler-specific alignment undefined!
50 #endif
51 
53 //*************************************************************************************************
54 
55 #endif