summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2d1318e)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
#define LTTNG_PACKED __attribute__((__packed__))
#endif
#define LTTNG_PACKED __attribute__((__packed__))
#endif
+/*
+ * Align value to the next multiple of align. Returns val if it already is a
+ * multiple of align. Align must be a power of two.
+ */
+#define ALIGN_TO(value, align) ((value + (align - 1)) & ~(align - 1))
+
/*
* LTTNG_HIDDEN: set the hidden attribute for internal functions
* On Windows, symbols are local unless explicitly exported,
/*
* LTTNG_HIDDEN: set the hidden attribute for internal functions
* On Windows, symbols are local unless explicitly exported,