Lines Matching refs:bckt
23 ** Return the number of distinct bytes. The bckt[] argument returns
24 ** the cumulative counts of all bytes. Thus, bckt[0] is the count
25 ** of byte 0, bckt[1] is the cumulative count of 0 and 1, and so on.
31 ssize_t vcbcktsort(ssize_t* indx, ssize_t* list, ssize_t n, Vcchar_t* data, ssize_t* bckt)
33 ssize_t vcbcktsort(indx, list, n, data, bckt)
38 ssize_t* bckt; /* [256] buckets */
45 memset(bckt, 0, 256*sizeof(ssize_t));
48 bckt[data[list[p]]] += 1;
52 bckt[data[p]] += 1;
56 { if((c = bckt[i]) > 0)
58 bckt[i] = p;
64 indx[bckt[data[list[p]]]++] = list[p];
68 indx[bckt[data[p]]++] = p;
81 ssize_t vcbcktsort(ssize_t* sort, ssize_t* list, ssize_t n, Vcchar_t* data, ssize_t* bckt)
83 ssize_t vcbcktsort(sort, list, n, data, bckt)
89 ssize_t* bckt; /* temp space of [256] buckets */
96 memset(bckt, 0, 256*sizeof(ssize_t));
102 bckt[c] += 1;
107 { if((i = bckt[c]) <= 0)
110 bckt[c] = p; p += i;
116 sort[bckt[data[i]]++] = i;