aboutsummaryrefslogtreecommitdiff
path: root/include/pub_tool_libcbase.h
diff options
context:
space:
mode:
authornjn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9>2005-12-22 19:50:45 +0000
committernjn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9>2005-12-22 19:50:45 +0000
commitcda391f285a5959c8df93f7edb183e2834b0e162 (patch)
treeddc3f44c9f65758718a4fdce4392fb468c22698f /include/pub_tool_libcbase.h
parent2537616350a5da4b9d8734d2bad86ed63622db9f (diff)
downloadvalgrind-cda391f285a5959c8df93f7edb183e2834b0e162.tar.gz
Add comment about log2().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5408 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'include/pub_tool_libcbase.h')
-rw-r--r--include/pub_tool_libcbase.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/pub_tool_libcbase.h b/include/pub_tool_libcbase.h
index cc1a55e37..f9d0eeec5 100644
--- a/include/pub_tool_libcbase.h
+++ b/include/pub_tool_libcbase.h
@@ -111,7 +111,7 @@ extern Int VG_(memcmp) ( const void* s1, const void* s2, SizeT n );
extern void VG_(ssort)( void* base, SizeT nmemb, SizeT size,
Int (*compar)(void*, void*) );
-/* Returns the base-2 logarithm of x. */
+/* Returns the base-2 logarithm of x. Returns -1 if x is not a power of two. */
extern Int VG_(log2) ( Int x );
// A pseudo-random number generator returning a random UInt. If pSeed