Home
last modified time | relevance | path

Searched refs:insertlen (Results 1 – 3 of 3) sorted by relevance

/external/brotli/c/enc/
Dcommand.h32 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()
[all …]
Dcompress_fragment.c177 static BROTLI_INLINE void EmitInsertLen(size_t insertlen, in EmitInsertLen() argument
183 if (insertlen < 6) { in EmitInsertLen()
184 const size_t code = insertlen + 40; in EmitInsertLen()
187 } else if (insertlen < 130) { in EmitInsertLen()
188 const size_t tail = insertlen - 2; in EmitInsertLen()
195 } else if (insertlen < 2114) { in EmitInsertLen()
196 const size_t tail = insertlen - 66; in EmitInsertLen()
204 BrotliWriteBits(12, insertlen - 2114, storage_ix, storage); in EmitInsertLen()
209 static BROTLI_INLINE void EmitLongInsertLen(size_t insertlen, in EmitLongInsertLen() argument
215 if (insertlen < 22594) { in EmitLongInsertLen()
[all …]
Dcompress_fragment_two_pass.c119 uint32_t insertlen, uint32_t** commands) { in EmitInsertLen() argument
120 if (insertlen < 6) { in EmitInsertLen()
121 **commands = insertlen; in EmitInsertLen()
122 } else if (insertlen < 130) { in EmitInsertLen()
123 const uint32_t tail = insertlen - 2; in EmitInsertLen()
129 } else if (insertlen < 2114) { in EmitInsertLen()
130 const uint32_t tail = insertlen - 66; in EmitInsertLen()
135 } else if (insertlen < 6210) { in EmitInsertLen()
136 const uint32_t extra = insertlen - 2114; in EmitInsertLen()
138 } else if (insertlen < 22594) { in EmitInsertLen()
[all …]