Home | History | Annotate | Download | only in gomoku

Lines Matching defs:fcbp

435 	struct combostr **scbpp, *fcbp;
495 fcbp = &frames[fsp->s_frame[r]];
496 if (ocbp < fcbp) {
498 scbpp[1] = fcbp;
500 scbpp[0] = fcbp;
507 ncbp->c_link[1] = fcbp;
1072 * Return zero if it is valid to combine frame 'fcbp' with the frames
1074 * Return positive if combining frame 'fcbp' to the frames in 'cbp'
1077 * Return -1 if 'fcbp' should not be combined with 'cbp'.
1078 * 'cv' is the combo value for frame 'fcbp'.
1081 checkframes(struct combostr *cbp, struct combostr *fcbp, struct spotstr *osp,
1096 n = (frame_index)(fcbp - frames) * FAREA;
1100 * ovbit == which overlap bit to test based on whether 'fcbp' is
1106 if (tcbp == fcbp)
1107 return -1; /* fcbp is already included */
1109 /* check for intersection of 'tcbp' with 'fcbp' */
1120 if (tcbp->c_dir == fcbp->c_dir &&
1125 * 'fcbp' to, and it is a reasonable intersection
1145 (s == fcbp->c_vertex ||
1146 s == fcbp->c_vertex + 5 * dd[fcbp->c_dir]))
1158 if (cbp == fcbp)
1159 return -1; /* fcbp is already included */
1161 /* check for intersection of 'cbp' with 'fcbp' */
1169 if (cbp->c_dir == fcbp->c_dir && (mask & (0x10 << n)) != 0)
1173 * 'fcbp' to, and it is a reasonable intersection
1193 (s == fcbp->c_vertex ||
1194 s == fcbp->c_vertex + 5 * dd[fcbp->c_dir]))
1207 * Merge sort the frame 'fcbp' and the sorted list of frames 'cbpp' and
1214 struct combostr *fcbp)
1225 debuglog("sortc: %s%c l%u", stoc(fcbp->c_vertex),
1226 pdir[fcbp->c_dir], curlevel);
1243 if (fcbp > *cpp) {
1244 *--spp = fcbp;
1252 *--spp = fcbp;
1262 fcbp = (void *)((char *)scbpp - sizeof(struct combostr));
1263 hashcombos[inx] = fcbp;
1264 fcbp->c_next = fcbp->c_prev = fcbp;
1314 fcbp = (void *)((char *)scbpp - sizeof(struct combostr));
1315 fcbp->c_next = cbp;
1316 fcbp->c_prev = ecbp;
1317 cbp->c_prev = fcbp;
1318 ecbp->c_next = fcbp;