This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: BUG: qsort reorders elements in already sorted array


On Wed, Jun 04, 2003 at 05:50:16PM +0200, Corinna Vinschen wrote:
>On Wed, Jun 04, 2003 at 02:58:28PM +0200, Corinna Vinschen wrote:
>> had exchanged their place.  As a figure, the order wasn't
>> 
>>   0 1 2 3 4 5 6 7 8 9
>> 
>> but
>> 
>>   9 1 2 3 4 5 6 7 8 0
>
>I have a patch which works, but which perhaps slows down qsort slightly:

There seems to be a newer version of qsort available from FreeBSD.  Does it
work any better than the newlib version?

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]