From cda391f285a5959c8df93f7edb183e2834b0e162 Mon Sep 17 00:00:00 2001 From: njn Date: Thu, 22 Dec 2005 19:50:45 +0000 Subject: Add comment about log2(). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5408 a5019735-40e9-0310-863c-91ae7b9d1cf9 --- include/pub_tool_libcbase.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/pub_tool_libcbase.h') 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 -- cgit v1.2.3