[haiku-commits] Re: haiku: hrev47194 - src/build/libroot

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 02 May 2014 14:15:23 +0200

On 05/02/2014 01:57 PM, pulkomandy@xxxxxxxxxxxxx wrote:
6df2ee7: Try to fix build on Linux.

   * Linux is the only one of our supported build hosts to not have
   mergesort. Provide an implementation that calls qsort, since the qsort
   implementation in the glibc used by Linux uses a mergesort (!) for small
   arrays.

Is there a reason why you use a non-standard sort function in the first place? There's std::stable_sort(), which you can use, if you need a stable sorting algorithm.

CU, Ingo


Other related posts: