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.11.0-rc1~556 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=df94ef0f8c4b890d961e5e69b9945035de03a05b;hp=fc804d0faf10919d60471e8b9599caad02cc7194 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) {