Lines Matching refs:insertlen
32 static BROTLI_INLINE uint16_t GetInsertLengthCode(size_t insertlen) { in GetInsertLengthCode() argument
33 if (insertlen < 6) { in GetInsertLengthCode()
34 return (uint16_t)insertlen; in GetInsertLengthCode()
35 } else if (insertlen < 130) { in GetInsertLengthCode()
36 uint32_t nbits = Log2FloorNonZero(insertlen - 2) - 1u; in GetInsertLengthCode()
37 return (uint16_t)((nbits << 1) + ((insertlen - 2) >> nbits) + 2); in GetInsertLengthCode()
38 } else if (insertlen < 2114) { in GetInsertLengthCode()
39 return (uint16_t)(Log2FloorNonZero(insertlen - 66) + 10); in GetInsertLengthCode()
40 } else if (insertlen < 6210) { in GetInsertLengthCode()
42 } else if (insertlen < 22594) { in GetInsertLengthCode()
83 static BROTLI_INLINE void GetLengthCode(size_t insertlen, size_t copylen, in GetLengthCode() argument
86 uint16_t inscode = GetInsertLengthCode(insertlen); in GetLengthCode()
121 const BrotliDistanceParams* dist, size_t insertlen, in InitCommand() argument
125 self->insert_len_ = (uint32_t)insertlen; in InitCommand()
134 insertlen, (size_t)((int)copylen + copylen_code_delta), in InitCommand()
138 static BROTLI_INLINE void InitInsertCommand(Command* self, size_t insertlen) { in InitInsertCommand() argument
139 self->insert_len_ = (uint32_t)insertlen; in InitInsertCommand()
143 GetLengthCode(insertlen, 4, BROTLI_FALSE, &self->cmd_prefix_); in InitInsertCommand()