equal
deleted
inserted
replaced
23 */ |
23 */ |
24 |
24 |
25 #ifndef SHARE_MEMORY_PADDED_HPP |
25 #ifndef SHARE_MEMORY_PADDED_HPP |
26 #define SHARE_MEMORY_PADDED_HPP |
26 #define SHARE_MEMORY_PADDED_HPP |
27 |
27 |
|
28 #include "memory/allocation.hpp" |
28 #include "utilities/align.hpp" |
29 #include "utilities/align.hpp" |
29 #include "utilities/globalDefinitions.hpp" |
30 #include "utilities/globalDefinitions.hpp" |
30 |
31 |
31 // Bytes needed to pad type to avoid cache-line sharing; alignment should be the |
32 // Bytes needed to pad type to avoid cache-line sharing; alignment should be the |
32 // expected cache line size (a power of two). The first addend avoids sharing |
33 // expected cache line size (a power of two). The first addend avoids sharing |