Home | History | Annotate | Download | only in examples

Lines Matching refs:left

122 /* rotate list[0..len-1] left by rot positions, in place */
137 /* do simple left shift by one */
163 *to = *from; /* shift left */
173 unsigned left; /* bytes available at next */
186 in->left = (unsigned)len;
198 #define read1(in) (in->left == 0 ? readmore(in) : 0, \
199 in->left--, *(in->next)++)
206 if (n > in->left) {
207 n -= in->left;
215 if (n > in->left)
218 in->left -= n;
261 int ret, lastbit, left, full;
275 gz.left = 0;
291 lastoff = lseek(gz.fd, 0L, SEEK_CUR) - gz.left;
292 left = 0;
293 strm->avail_in = gz.left;
301 strm->avail_in = gz.left;
328 left = strm->data_type & 0x1f;
336 gz.left = strm->avail_in;
340 end = lseek(gz.fd, 0L, SEEK_CUR) - gz.left;
350 if (gz.left || readin(&gz))
373 if (left) {
376 deflatePrime(strm, 8 - left, *gz.buf);
391 unsigned left;
427 left = CHUNK - strm->avail_out;
428 while (left) {
429 len = write(gd, out + CHUNK - strm->avail_out - left, left);
431 left -= (unsigned)len;