Lines Matching defs:copylen
49 static BROTLI_INLINE uint16_t GetCopyLengthCode(size_t copylen) {
50 if (copylen < 10) {
51 return (uint16_t)(copylen - 2);
52 } else if (copylen < 134) {
53 uint32_t nbits = Log2FloorNonZero(copylen - 6) - 1u;
54 return (uint16_t)((nbits << 1) + ((copylen - 6) >> nbits) + 4);
55 } else if (copylen < 2118) {
56 return (uint16_t)(Log2FloorNonZero(copylen - 70) + 12);
83 static BROTLI_INLINE void GetLengthCode(size_t insertlen, size_t copylen,
87 uint16_t copycode = GetCopyLengthCode(copylen);
122 size_t copylen, int copylen_code_delta, size_t distance_code) {
126 self->copy_len_ = (uint32_t)(copylen | (delta << 25));
134 insertlen, (size_t)((int)copylen + copylen_code_delta),