Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fixes for buliding for 32bit targets:
[vpp.git]
/
src
/
vppinfra
/
clib.h
diff --git
a/src/vppinfra/clib.h
b/src/vppinfra/clib.h
index
95dadd9
..
8aec1f1
100644
(file)
--- 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))
#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
/* Make a string from the macro's argument */
#define CLIB_STRING_MACRO(x) #x