Lines Matching defs:dat
523 * filter out the high frequency columns from dat
534 unsigned char* dat;
547 dat = *datp;
602 s = dat;
702 s = dat;
711 *bufp = dat;
725 * permute state.map and dat according to a new order
729 permute(unsigned char* buf, unsigned char* dat, size_t* ord, size_t row, size_t tot)
740 for (end = dat + tot; dat < end; dat += row)
742 memcpy(buf, dat, row);
744 dat[i] = buf[ord[i]];
803 reorder_heuristic(Reorder_method_t* method, unsigned char* buf, unsigned char* dat, int* lab, size_t row, size_t tot)
904 siz[i][i] = field(buf, dat, i, i, row, tot);
914 z = pair(buf, dat, i, j, row, tot);
915 y = pair(buf, dat, j, i, row, tot);
990 cst[tp->member[j]] = tp->size - part(buf, dat, np, row, tot);
1017 if (!merge(buf, dat, i, tp, np, siz, row, tot))
1100 * permute state.map and dat according to the new order
1103 permute(buf, dat, ord, row, tot);
1123 reorder_tsp(Reorder_method_t* method, unsigned char* buf, unsigned char* dat, int* lab, size_t row, size_t tot)
1160 self[i] = field(buf, dat, i, i, row, tot);
1165 together[i][j] = pair(buf, dat, i, j, row, tot);
1203 * permute state.map and dat according to the new order
1206 permute(buf, dat, self, row, tot);
1257 optimize_dynamic(Optimize_method_t* method, unsigned char* buf, unsigned char* dat, size_t** val, size_t* cst, size_t* sol, size_t row, size_t tot, size_t grp)
1277 val[i][j] = field(buf, dat, i, j, row, tot);
1307 optimize_greedy(Optimize_method_t* method, unsigned char* buf, unsigned char* dat, size_t** val, size_t* cst, size_t* sol, size_t row, size_t tot, size_t grp)
1313 cst[0] = val[0][0] = field(buf, dat, 0, 0, row, tot);
1317 val[sol[i-1] + 1][i] = field(buf, dat, sol[i-1]+1, i, row, tot);
1318 val[i][i] = field(buf, dat, i, i, row, tot);
1338 optimize_transitive(Optimize_method_t* method, unsigned char* buf, unsigned char* dat, size_t** val, size_t* cst, size_t* sol, size_t row, size_t tot, size_t grp)
1343 cst[0] = val[0][0] = field(buf, dat, 0, 0, row, tot);
1347 val[i][i] = field(buf, dat, i, i, row, tot);
1348 expand = field(buf, dat, i-1, i, row, tot);
1442 unsigned char* dat;
1610 dat = 0;
1653 if (!(dat = newof(dat, unsigned char, win, 0)))
1654 error(ERROR_SYSTEM|3, "out of space [dat]");
1657 if ((m = sfread(ip, dat, win)) < 0)
1660 if (filter(ip, &buf, &dat, pz, high, maxhigh, row, row * rows) == row)
1682 if (!(dat = newof(0, unsigned char, state.window, 0)))
1683 error(ERROR_SYSTEM|3, "out of space [dat]");
1686 if ((n = sfread(ip, dat, state.window)) <= 0)
1693 qsort(dat, rows, row, byrow);
1718 if (row = filter(ip, &buf, &dat, pz, high, maxhigh, row, row * rows))
1735 (*reorder_method->fun)(reorder_method, buf, dat, lab, row, tot);
1759 (*optimize_method->fun)(optimize_method, buf, dat, val, cst, sol, row, tot, maxgrp);