From: Jérémie Galarneau Date: Sat, 27 May 2017 11:18:35 +0000 (-0400) Subject: Add comment to round_to_power_of_2() X-Git-Tag: v2.10.0-rc2~36 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4b6f62075f515e5de9a7f12bab2b31060becdf90;p=lttng-tools.git Add comment to round_to_power_of_2() Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/dynamic-buffer.c b/src/common/dynamic-buffer.c index 9ed16514f..05d3022af 100644 --- a/src/common/dynamic-buffer.c +++ b/src/common/dynamic-buffer.c @@ -20,6 +20,10 @@ #include #include +/* + * Round to (upper) power of two, val is returned if it already is a power of + * two. + */ static size_t round_to_power_of_2(size_t val) {