Lines Matching refs:len
149 uint32_t olen, off, len, idx, i, l;
223 len = s - q - 1;
224 i += len;
241 if (len < 4) { /* length = 3 */
243 } else if (len < 8) { /* 4 <= length < 8 */
244 putbits8(*dst, 0x08|(len&0x03), 4, &olen, &l);
245 } else if (len < 16) { /* 8 <= length < 16 */
246 putbits8(*dst, 0x30|(len&0x07), 6, &olen, &l);
247 } else if (len < 32) { /* 16 <= length < 32 */
248 putbits8(*dst, 0xe0|(len&0x0f), 8, &olen, &l);
249 } else if (len < 64) { /* 32 <= length < 64 */
250 putbits16(*dst, 0x3c0|(len&0x1f), 10, &olen, &l);
251 } else if (len < 128) { /* 64 <= length < 128 */
252 putbits16(*dst, 0xf80|(len&0x3f), 12, &olen, &l);
253 } else if (len < 256) { /* 128 <= length < 256 */
254 putbits16(*dst, 0x3f00|(len&0x7f), 14, &olen, &l);
255 } else if (len < 512) { /* 256 <= length < 512 */
256 putbits16(*dst, 0xfe00|(len&0xff), 16, &olen, &l);
257 } else if (len < 1024) { /* 512 <= length < 1024 */
258 putbits24(*dst, 0x3fc00|(len&0x1ff), 18, &olen, &l);
259 } else if (len < 2048) { /* 1024 <= length < 2048 */
260 putbits24(*dst, 0xff800|(len&0x3ff), 20, &olen, &l);
261 } else if (len < 4096) { /* 2048 <= length < 4096 */
262 putbits24(*dst, 0x3ff000|(len&0x7ff), 22, &olen, &l);
263 } else if (len < 8192) { /* 4096 <= length < 8192 */
264 putbits24(*dst, 0xffe000|(len&0xfff), 24, &olen, &l);