Home
last modified time | relevance | path

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

/external/cronet/third_party/brotli/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.c179 static BROTLI_INLINE void EmitInsertLen(size_t insertlen, in EmitInsertLen() argument
185 if (insertlen < 6) { in EmitInsertLen()
186 const size_t code = insertlen + 40; in EmitInsertLen()
189 } else if (insertlen < 130) { in EmitInsertLen()
190 const size_t tail = insertlen - 2; in EmitInsertLen()
197 } else if (insertlen < 2114) { in EmitInsertLen()
198 const size_t tail = insertlen - 66; in EmitInsertLen()
206 BrotliWriteBits(12, insertlen - 2114, storage_ix, storage); in EmitInsertLen()
211 static BROTLI_INLINE void EmitLongInsertLen(size_t insertlen, in EmitLongInsertLen() argument
217 if (insertlen < 22594) { in EmitLongInsertLen()
[all …]
Dcompress_fragment_two_pass.c118 uint32_t insertlen, uint32_t** commands) { in EmitInsertLen() argument
119 if (insertlen < 6) { in EmitInsertLen()
120 **commands = insertlen; in EmitInsertLen()
121 } else if (insertlen < 130) { in EmitInsertLen()
122 const uint32_t tail = insertlen - 2; in EmitInsertLen()
128 } else if (insertlen < 2114) { in EmitInsertLen()
129 const uint32_t tail = insertlen - 66; in EmitInsertLen()
134 } else if (insertlen < 6210) { in EmitInsertLen()
135 const uint32_t extra = insertlen - 2114; in EmitInsertLen()
137 } else if (insertlen < 22594) { in EmitInsertLen()
[all …]
/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 …]