/[base]
ViewVC logotype

Revision 319291


Jump to revision: Previous Next
Author: delphij
Date: Wed May 31 06:26:37 2017 UTC (7 years, 1 month ago)
Changed paths: 4
Log Message:
MFC r318514-r318515, r318517, r318917

r318514:
Use size_t.

Inspired by:	OpenBSD src/lib/libc/stdlib/qsort.c,v 1.11

r318515:
The current qsort(3) implementation ignores the sizes of partitions, and
always perform recursion on the left partition, then use a tail call to
handle the right partition.  In the worst case this could require O(N)
levels of recursions.

Reduce the possible recursion level to log2(N) by always recursing on the
smaller partition instead.

Obtained from:	PostgreSQL 9d6077abf9d6efd992a59f05ef5aba981ea32096

r318517:
Sync qsort.c with userland r318515.

(Note that MIN macro is removed in favor of sys/param.h's version).

PR:		213922

r318917:
Disconnect heimdal version of qsort.c from build because we are already
using libc's version of qsort.

PR:		bin/213922


Changed paths

Path Details
Directorystable/10/ modified , props changed
Directorystable/10/kerberos5/lib/libroken/Makefile modified , text changed
Directorystable/10/lib/libc/stdlib/qsort.c modified , text changed
Directorystable/10/sys/libkern/qsort.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27