Lines Matching refs:bdir
388 static void boundary_abs(int a, int adir, int *b, int *bdir)
392 *bdir = -adir;
395 *bdir = adir;
400 void boundary_sub(int a, int adir, int b, int bdir, int *c, int *cdir)
403 bdir = bdir < 0 ? -1 : (bdir > 0 ? 1 : 0);
405 *cdir = adir - bdir;
415 int boundary_lt(unsigned int a, int adir, unsigned int b, int bdir)
418 assert(b > 0 || bdir >= 0);
424 if (bdir < 0) {
426 bdir = 1;
427 } else if (bdir > 0)
428 bdir = 1;
429 return a < b || (a == b && adir < bdir);