Lines Matching defs:lim
71 * divide the work in half by moving either left or right. If lim
72 * is odd, moving left simply involves halving lim: e.g., when lim
73 * is 5 we look at item 2, so we change lim to 2 so that we will
74 * look at items 0 & 1. If lim is even, the same applies. If lim
75 * is odd, moving right again involes halving lim, this time moving
76 * the base up one item past p: e.g., when lim is 5 we change base
77 * to item 3 and make lim 2 so that we will look at items 3 and 4.
78 * If lim is even, however, we have to shrink it by one before
79 * halving: e.g., when lim is 4, we still looked at item 2, so we
80 * have to make lim 3, then halve, obtaining 1, so that we will only
92 register size_t lim;
96 for (lim = nmemb; lim != 0; lim >>= 1) {
97 p = base + (lim >> 1) * size;
103 lim--;