projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: namespace 'align' macros
[lttng-tools.git]
/
src
/
common
/
macros.h
diff --git
a/src/common/macros.h
b/src/common/macros.h
index e9dc190aac3f00c0235d272d375c950632013a26..874501ef1749325b38ba6d4214990da1396cd74a 100644
(file)
--- a/
src/common/macros.h
+++ b/
src/common/macros.h
@@
-97,12
+97,6
@@
void *zmalloc(size_t len)
#define is_signed(type) (((type) -1) < (type) 1)
#define is_signed(type) (((type) -1) < (type) 1)
-/*
- * 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))
-
#define member_sizeof(type, field) sizeof(((type *) 0)->field)
#define ASSERT_LOCKED(lock) LTTNG_ASSERT(pthread_mutex_trylock(&lock))
#define member_sizeof(type, field) sizeof(((type *) 0)->field)
#define ASSERT_LOCKED(lock) LTTNG_ASSERT(pthread_mutex_trylock(&lock))
This page took
0.023528 seconds
and
4
git commands to generate.