ADTF  3.18.4
alignment.h
Go to the documentation of this file.
1 
8 #ifndef BASE_ALIGNMENT_H
9 #define BASE_ALIGNMENT_H
10 
11 #ifdef WIN32
13  #define BASE_POST_ALIGN1
15  #define BASE_POST_ALIGN2
17  #define BASE_POST_ALIGN4
19  #define BASE_POST_ALIGN8
21  #define BASE_POST_ALIGN16
23  #define BASE_POST_ALIGN32
25  #define BASE_POST_ALIGN64
27  #define BASE_POST_ALIGN128
28 
30  #define BASE_PRE_ALIGN1 __declspec(align(1))
32  #define BASE_PRE_ALIGN2 __declspec(align(2))
34  #define BASE_PRE_ALIGN4 __declspec(align(4))
36  #define BASE_PRE_ALIGN8 __declspec(align(8))
38  #define BASE_PRE_ALIGN16 __declspec(align(16))
40  #define BASE_PRE_ALIGN32 __declspec(align(32))
42  #define BASE_PRE_ALIGN64 __declspec(align(64))
44  #define BASE_PRE_ALIGN128 __declspec(align(128))
45 #else
47  #define BASE_POST_ALIGN1 __attribute__ ((aligned (1)))
49  #define BASE_POST_ALIGN2 __attribute__ ((aligned (2)))
51  #define BASE_POST_ALIGN4 __attribute__ ((aligned (4)))
53  #define BASE_POST_ALIGN8 __attribute__ ((aligned (8)))
55  #define BASE_POST_ALIGN16 __attribute__ ((aligned (16)))
57  #define BASE_POST_ALIGN32 __attribute__ ((aligned (32)))
59  #define BASE_POST_ALIGN64 __attribute__ ((aligned (64)))
61  #define BASE_POST_ALIGN128 __attribute__ ((aligned (128)))
62 
64  #define BASE_PRE_ALIGN1
66  #define BASE_PRE_ALIGN2
68  #define BASE_PRE_ALIGN4
70  #define BASE_PRE_ALIGN8
72  #define BASE_PRE_ALIGN16
74  #define BASE_PRE_ALIGN32
76  #define BASE_PRE_ALIGN64
78  #define BASE_PRE_ALIGN128
79 #endif
80 
81 
82 #endif /* BASE_ALIGNMENT_H */