]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
update comments
authorNicholas Nethercote <njn@valgrind.org>
Mon, 3 Mar 2008 02:15:03 +0000 (02:15 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Mon, 3 Mar 2008 02:15:03 +0000 (02:15 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7543

coregrind/m_libcbase.c
include/pub_tool_libcbase.h

index 3643bcef517b39c61321dbb5b2331d9a6a24077c..f63a0ed36532fee2edadac9894b1cab8f8c713cd 100644 (file)
@@ -730,7 +730,7 @@ Int VG_(log2) ( UInt x )
 }
 
 
-// Generic shell sort.  Like stdlib.h's qsort().
+// Generic quick sort.
 void VG_(ssort)( void* base, SizeT nmemb, SizeT size,
                  Int (*compar)(void*, void*) )
 {
index 5b8cdadf4ebb98b5a621e81c31a31fe21b7e47c5..b2dc38804fe01c31fb63fd984ca86e1500a749fb 100644 (file)
@@ -131,7 +131,8 @@ extern Int   VG_(memcmp) ( const void* s1, const void* s2, SizeT n );
    Misc useful functions
    ------------------------------------------------------------------ */
 
-/* Like qsort(), but does shell-sort.  The size==1/2/4 cases are specialised. */
+/* Like qsort().  The name VG_(ssort) is for historical reasons -- it used
+ * to be a shell sort, but is now a quicksort. */
 extern void VG_(ssort)( void* base, SizeT nmemb, SizeT size,
                         Int (*compar)(void*, void*) );