Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Apr 2016 13:43:38 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   qsort() documentation
Message-ID:  <5714C86A.8050204@selasky.org>

next in thread | raw e-mail | index | archive | help
Hi,

Are there any objections adding the following as part of documenting our 
kernel's qsort function?

Index: sys/libkern/qsort.c
===================================================================
--- sys/libkern/qsort.c (revision 298202)
+++ sys/libkern/qsort.c (working copy)
@@ -45,6 +45,10 @@

  /*
   * Qsort routine from Bentley & McIlroy's "Engineering a Sort Function".
+ *
+ * NOTE: This implementation of qsort() was designed to not have the
+ * worst case complexity of N**2, as seen with the regular quick sort
+ * functions as described by Wikipedia.
   */


--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5714C86A.8050204>