git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5408
Misc useful functions
------------------------------------------------------------------ */
+/* Returns the base-2 logarithm of x. Returns -1 if x is not a power of two. */
Int VG_(log2) ( Int x )
{
Int i;
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