X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fdynamic-buffer.c;h=05d3022af19d0e4e8ef9d0527a6069394131eb6b;hb=df94ef0f8c4b890d961e5e69b9945035de03a05b;hp=9ed16514fe64fa84dc735f15de862ca662a04fef;hpb=fc804d0faf10919d60471e8b9599caad02cc7194;p=lttng-tools.git 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) {