chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bus: don't calculate kmsg message too large
[elogind.git]
/
src
/
shared
/
macro.h
diff --git
a/src/shared/macro.h
b/src/shared/macro.h
index 84a453a8f27319778eca17e5bd3e26330860dea4..99dc733853ea0dd8abe37db98a26d85f7c59f94f 100644
(file)
--- a/
src/shared/macro.h
+++ b/
src/shared/macro.h
@@
-65,6
+65,8
@@
#error "Wut? Pointers are neither 4 nor 8 bytes long?"
#endif
#error "Wut? Pointers are neither 4 nor 8 bytes long?"
#endif
+#define ALIGN8_PTR(p) ((void*) ALIGN8((unsigned long) p))
+
static inline size_t ALIGN_TO(size_t l, size_t ali) {
return ((l + ali - 1) & ~(ali - 1));
}
static inline size_t ALIGN_TO(size_t l, size_t ali) {
return ((l + ali - 1) & ~(ali - 1));
}