ViewVC logotype

Contents of /branches/intelc_win32/finley/src/qsortG.h

Parent Directory Parent Directory | Revision Log Revision Log

Revision 752 - (show annotations)
Mon Jun 26 02:25:41 2006 UTC (16 years, 1 month ago) by woo409
File MIME type: text/plain
File size: 271 byte(s)
+ Added a qsort.c file which contains a drop in replacement for qsort (call it as qsortG). This one appears to be a stable implementation and the test .msh files on windows have been set up to be the same as unix again except for the exponent digits (3 instead of 2).
With ALL the qsorts replaced with qsortG only two tests fail now on win32:

Both give wrong result errors.

I will check this same code on the altix (including the use of qsortG and see if Altix has the same problem.
1 /* qsortG - drop in replacement for qsort */
2 /* Useful for consistency across platforms as quicksort isn't guaranteed to be stable (and isn't on Win32) */
4 extern void qsortG(void *base, size_t nmemb, size_t size,
5 int (*compare)(const void *, const void *));

  ViewVC Help
Powered by ViewVC 1.1.26