Lines Matching defs:adir
388 static void boundary_abs(int a, int adir, int *b, int *bdir)
390 if (a < 0 || (a == 0 && adir < 0)) {
392 *bdir = -adir;
395 *bdir = adir;
400 void boundary_sub(int a, int adir, int b, int bdir, int *c, int *cdir)
402 adir = adir < 0 ? -1 : (adir > 0 ? 1 : 0);
405 *cdir = adir - bdir;
415 int boundary_lt(unsigned int a, int adir, unsigned int b, int bdir)
417 assert(a > 0 || adir >= 0);
419 if (adir < 0) {
421 adir = 1;
422 } else if (adir > 0)
423 adir = 1;
429 return a < b || (a == b && adir < bdir);