Return to diffreg.c CVS log | Up to [local] / src / usr.bin / diff |
version 1.79, 2010/07/16 21:47:02 | version 1.80, 2011/04/01 17:25:26 | ||
---|---|---|---|
|
|
||
stone(int *a, int n, int *b, int *c, int flags) | stone(int *a, int n, int *b, int *c, int flags) | ||
{ | { | ||
int i, k, y, j, l; | int i, k, y, j, l; | ||
int oldc, tc, oldl; | int oldc, tc, oldl, sq; | ||
u_int numtries; | u_int numtries, bound; | ||
/* XXX move the isqrt() out of the macro to avoid multiple calls */ | if (flags & D_MINIMAL) | ||
const u_int bound = (flags & D_MINIMAL) ? UINT_MAX : | bound = UINT_MAX; | ||
MAX(256, isqrt(n)); | else { | ||
sq = isqrt(n); | |||
bound = MAX(256, sq); | |||
} | |||
k = 0; | k = 0; | ||
c[0] = newcand(0, 0, 0); | c[0] = newcand(0, 0, 0); |