Lines Matching refs:best
62 struct score *best);
280 struct score best = {{0}, {0}, {0}, 0}; in scan_r2l_t2b() local
312 CR_R2L_T2B, &best)) in scan_r2l_t2b()
329 if (!best.a.tcm) in scan_r2l_t2b()
332 assign(area, best.a.p0.x, best.a.p0.y, best.a.p1.x, best.a.p1.y); in scan_r2l_t2b()
354 struct score best = {{0}, {0}, {0}, 0}; in scan_l2r_t2b() local
388 CR_L2R_T2B, &best)) in scan_l2r_t2b()
405 if (!best.a.tcm) in scan_l2r_t2b()
408 assign(area, best.a.p0.x, best.a.p0.y, best.a.p1.x, best.a.p1.y); in scan_l2r_t2b()
604 struct score *best) in update_candidate() argument
625 if (!best->a.tcm) in update_candidate()
632 best->neighs <= me.neighs && in update_candidate()
633 (best->neighs < me.neighs || in update_candidate()
635 best->n.busy < me.n.busy || in update_candidate()
636 (best->n.busy == me.n.busy && in update_candidate()
638 best->f.x + best->f.y > me.f.x + me.f.y))) in update_candidate()
646 memcpy(best, &me, sizeof(me)); in update_candidate()
647 best->a.tcm = tcm; in update_candidate()