mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
Tidied for gcc-3.4
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15476 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
77fbafc557
commit
d64578fc3e
50 changed files with 2888 additions and 1775 deletions
|
@ -631,14 +631,15 @@ static SEL eqSel;
|
|||
/* Shell sort algorithm taken from SortingInAction - a NeXT example */
|
||||
#define STRIDE_FACTOR 3 // good value for stride factor is not well-understood
|
||||
// 3 is a fairly good choice (Sedgewick)
|
||||
unsigned c,d, stride;
|
||||
unsigned int c;
|
||||
unsigned int d;
|
||||
unsigned int stride = 1;
|
||||
BOOL found;
|
||||
int count = _count;
|
||||
unsigned int count = _count;
|
||||
#ifdef GSWARN
|
||||
BOOL badComparison = NO;
|
||||
#endif
|
||||
|
||||
stride = 1;
|
||||
while (stride <= count)
|
||||
{
|
||||
stride = stride * STRIDE_FACTOR + 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue