X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2Fclib.h;h=8aec1f16beb5862f16ba0d0c47f9bd71417bcdfc;hb=c6eb5bc967d3d70016b4e4e182b3d68b1e558f60;hp=95dadd9c09d68c31a5a255a8339c092e03799a63;hpb=2f6d7bb93c157b874efb79a2d1583a4c368bf89a;p=vpp.git diff --git a/src/vppinfra/clib.h b/src/vppinfra/clib.h index 95dadd9c09d..8aec1f16beb 100644 --- a/src/vppinfra/clib.h +++ b/src/vppinfra/clib.h @@ -81,6 +81,9 @@ #define CLIB_PACKED(x) x __attribute__ ((packed)) #define CLIB_UNUSED(x) x __attribute__ ((unused)) +/* similar to CLIB_CACHE_LINE_ALIGN_MARK() but with arbitrary alignment */ +#define CLIB_ALIGN_MARK(name, alignment) u8 name[0] __attribute__((aligned(alignment))) + /* Make a string from the macro's argument */ #define CLIB_STRING_MACRO(x) #x