[CRIU] [PATCH 1/2] util: Move ilog2 out of compiler.h and fix it.
Cyrill Gorcunov
gorcunov at openvz.org
Tue Dec 11 11:36:27 EST 2012
This helper has nothing to do with compiler thus
move it to util.h
Moreover, plain is_log2 as it was -- worked well
on natural numbers greater than 1 only, so rename
it to __is_log2 and add is_log2 wrapper.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
include/compiler.h | 2 --
include/util.h | 9 +++++++++
parasite-syscall.c | 2 +-
tty.c | 2 +-
4 files changed, 11 insertions(+), 4 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-util-Move-ilog2-out-of-compiler.h-and-fix-it.patch
Type: text/x-patch
Size: 1644 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20121211/8e590688/attachment.bin>
More information about the CRIU
mailing list