Remove uneeded alignment constraint for SPSC queue.
This commit is contained in:
1 parent
31c18fc56d
commit
8cf4050d3d
1 file changed
-2
@@ -644,10 +644,8 @@ M_C(name, _init)(buffer_t v, size_t size) \
|
|||||||
|
|
||||||
#define QUEUEI_SPSC_DEF2(name, type, policy, oplist, buffer_t) \
|
#define QUEUEI_SPSC_DEF2(name, type, policy, oplist, buffer_t) \
|
||||||
\
|
\
|
||||||
/* Not sure if the alignment constraint is needed */ \
|
|
||||||
typedef struct M_C(name, _el_s) { \
|
typedef struct M_C(name, _el_s) { \
|
||||||
type x; \
|
type x; \
|
||||||
char align[M_ALIGN_FOR_CACHELINE_EXCLUSION > sizeof(type) ? M_ALIGN_FOR_CACHELINE_EXCLUSION -sizeof(type) : 1]; \
|
|
||||||
} M_C(name, _el_t); \
|
} M_C(name, _el_t); \
|
||||||
\
|
\
|
||||||
typedef struct M_C(name, _s) { \
|
typedef struct M_C(name, _s) { \
|
||||||
|
|||||||
Reference in new issue
Block a user