Lines Matching +defs:val +defs:pos
146 unsigned long val;
148 val = bget(in);
149 val += (unsigned long)(bget(in)) << 8;
150 val += (unsigned long)(bget(in)) << 16;
151 val += (unsigned long)(bget(in)) << 24;
152 return val;
244 local void put4(unsigned long val, FILE *out)
246 putc(val & 0xff, out);
247 putc((val >> 8) & 0xff, out);
248 putc((val >> 16) & 0xff, out);
249 putc((val >> 24) & 0xff, out);
282 int pos; /* where the "last block" bit is in byte */
346 pos = strm.data_type & 7;
349 if (pos != 0) {
351 pos = 0x100 >> pos;
352 last = strm.next_in[-1] & pos;
354 strm.next_in[-1] &= ~pos;
377 pos = strm.data_type & 7;
380 if (pos == 0 || !clr)
385 last &= ((0x100 >> pos) - 1); /* assure unused bits are zero */
386 if (pos & 1) {
389 if (pos == 1)
395 switch (pos) {