Lines Matching defs:bits

64 /* Builds a literal prefix code into "depths" and "bits" based on the statistics
76 uint16_t bits[256],
113 depths, bits, storage_ix, storage);
126 "bits" based on "histogram" and stores it into the bit stream. */
128 uint8_t depth[128], uint16_t bits[128], size_t* storage_ix,
138 the command bits because the symbols are in a different order than in
140 in this order in the command bits saves a few branches in the Emit*
149 memcpy(bits, cmd_bits, 48);
150 memcpy(bits + 24, cmd_bits + 32, 16);
151 memcpy(bits + 32, cmd_bits + 48, 16);
152 memcpy(bits + 40, cmd_bits + 24, 16);
153 memcpy(bits + 48, cmd_bits + 40, 16);
154 memcpy(bits + 56, cmd_bits + 56, 16);
155 BrotliConvertBitDepthsToSymbols(&depth[64], 64, &bits[64]);
179 const uint16_t bits[128],
185 BrotliWriteBits(depth[code], bits[code], storage_ix, storage);
192 BrotliWriteBits(depth[inscode], bits[inscode], storage_ix, storage);
199 BrotliWriteBits(depth[code], bits[code], storage_ix, storage);
203 BrotliWriteBits(depth[61], bits[61], storage_ix, storage);
211 const uint16_t bits[128],
216 BrotliWriteBits(depth[62], bits[62], storage_ix, storage);
220 BrotliWriteBits(depth[63], bits[63], storage_ix, storage);
228 const uint16_t bits[128],
234 depth[copylen + 14], bits[copylen + 14], storage_ix, storage);
241 BrotliWriteBits(depth[code], bits[code], storage_ix, storage);
248 BrotliWriteBits(depth[code], bits[code], storage_ix, storage);
252 BrotliWriteBits(depth[39], bits[39], storage_ix, storage);
260 const uint16_t bits[128],
265 BrotliWriteBits(depth[copylen - 4], bits[copylen - 4], storage_ix, storage);
272 BrotliWriteBits(depth[code], bits[code], storage_ix, storage);
278 BrotliWriteBits(depth[code], bits[code], storage_ix, storage);
280 BrotliWriteBits(depth[64], bits[64], storage_ix, storage);
287 BrotliWriteBits(depth[code], bits[code], storage_ix, storage);
289 BrotliWriteBits(depth[64], bits[64], storage_ix, storage);
293 BrotliWriteBits(depth[39], bits[39], storage_ix, storage);
295 BrotliWriteBits(depth[64], bits[64], storage_ix, storage);
303 const uint16_t bits[128],
311 BrotliWriteBits(depth[distcode], bits[distcode], storage_ix, storage);
318 const uint16_t bits[256],
323 BrotliWriteBits(depth[lit], bits[lit], storage_ix, storage);
345 static void UpdateBits(size_t n_bits, uint32_t bits, size_t pos,
355 uint32_t changed_bits = bits & ((1u << n_changed_bits) - 1u);
359 bits >>= n_changed_bits;