45 #include "shellSort_dh.h"
48 #define __FUNC__ "shellSort_int"
50 shellSort_int (
const int n,
int *x)
52 START_FUNC_DH
int m, max, j, k, itemp;
58 for (j = 0; j < max; j++)
60 for (k = j; k >= 0; k -= m)
74 #define __FUNC__ "shellSort_float"
76 shellSort_float (
const int n,
double *x)
78 START_FUNC_DH
int m, max, j, k;
85 for (j = 0; j < max; j++)
87 for (k = j; k >= 0; k -= m)
103 #define __FUNC__ "shellSort_int_float"
105 shellSort_int_float (
int n,
int *x, VAL_DH * xVals)
107 START_FUNC_DH
int m, max, j, k, itemp;
114 for (j = 0; j < max; j++)
116 for (k = j; k >= 0; k -= m)
118 if (x[k + m] >= x[k])
121 atemp = xVals[k + m];