projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add comment to round_to_power_of_2()
[lttng-tools.git]
/
src
/
common
/
dynamic-buffer.c
diff --git
a/src/common/dynamic-buffer.c
b/src/common/dynamic-buffer.c
index 9ed16514fe64fa84dc735f15de862ca662a04fef..05d3022af19d0e4e8ef9d0527a6069394131eb6b 100644
(file)
--- a/
src/common/dynamic-buffer.c
+++ b/
src/common/dynamic-buffer.c
@@
-20,6
+20,10
@@
#include <common/utils.h>
#include <assert.h>
+/*
+ * 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)
{
This page took
0.024418 seconds
and
4
git commands to generate.