Lines Matching refs:rembits
41 size_t rembits, const nghttp2_huff_sym *sym) in huff_encode_sym() argument
48 if (rembits > nbits) { in huff_encode_sym()
49 nghttp2_bufs_fast_orb_hold(bufs, (uint8_t)(code << (rembits - nbits))); in huff_encode_sym()
50 return (ssize_t)(rembits - nbits); in huff_encode_sym()
53 if (rembits == nbits) { in huff_encode_sym()
59 nghttp2_bufs_fast_orb(bufs, (uint8_t)(code >> (nbits - rembits))); in huff_encode_sym()
62 nbits -= rembits; in huff_encode_sym()
158 ssize_t rembits = 8; in nghttp2_hd_huff_encode() local
166 if (rembits == 8) { in nghttp2_hd_huff_encode()
177 rembits = huff_encode_sym(bufs, &avail, (size_t)rembits, sym); in nghttp2_hd_huff_encode()
178 if (rembits < 0) { in nghttp2_hd_huff_encode()
179 return (int)rembits; in nghttp2_hd_huff_encode()
183 if (rembits < 8) { in nghttp2_hd_huff_encode()
190 bufs, (uint8_t)(sym->code >> (sym->nbits - (size_t)rembits))); in nghttp2_hd_huff_encode()