• Home
  • Raw
  • Download

Lines Matching refs:bits

44 	int bits[8];  member
93 static void init_rubin(struct rubin_state *rs, int div, int *bits) in init_rubin() argument
103 rs->bits[c] = bits[c]; in init_rubin()
156 static void init_decode(struct rubin_state *rs, int div, int *bits) in init_decode() argument
158 init_rubin(rs, div, bits); in init_decode()
173 int c, bits = 0; in __do_decode() local
181 bits++; in __do_decode()
190 rs->bit_number += bits; in __do_decode()
201 } while (--bits); in __do_decode()
242 ret = encode(rs, rs->bit_divider-rs->bits[i], in out_byte()
243 rs->bits[i], byte & 1); in out_byte()
259 result |= decode(rs, bit_divider - rs->bits[i], in in_byte()
260 rs->bits[i]) << i; in in_byte()
267 static int rubin_do_compress(int bit_divider, int *bits, unsigned char *data_in, in rubin_do_compress() argument
277 init_rubin(&rs, bit_divider, bits); in rubin_do_compress()
313 int bits[8]; in jffs2_dynrubin_compress() local
328 memset(bits, 0, sizeof(int)*8); in jffs2_dynrubin_compress()
331 bits[7] += histo[i]; in jffs2_dynrubin_compress()
333 bits[6] += histo[i]; in jffs2_dynrubin_compress()
335 bits[5] += histo[i]; in jffs2_dynrubin_compress()
337 bits[4] += histo[i]; in jffs2_dynrubin_compress()
339 bits[3] += histo[i]; in jffs2_dynrubin_compress()
341 bits[2] += histo[i]; in jffs2_dynrubin_compress()
343 bits[1] += histo[i]; in jffs2_dynrubin_compress()
345 bits[0] += histo[i]; in jffs2_dynrubin_compress()
349 bits[i] = (bits[i] * 256) / mysrclen; in jffs2_dynrubin_compress()
350 if (!bits[i]) bits[i] = 1; in jffs2_dynrubin_compress()
351 if (bits[i] > 255) bits[i] = 255; in jffs2_dynrubin_compress()
352 cpage_out[i] = bits[i]; in jffs2_dynrubin_compress()
355 ret = rubin_do_compress(256, bits, data_in, cpage_out+8, &mysrclen, in jffs2_dynrubin_compress()
373 static void rubin_do_decompress(int bit_divider, int *bits, in rubin_do_decompress() argument
382 init_decode(&rs, bit_divider, bits); in rubin_do_decompress()
402 int bits[8]; in jffs2_dynrubin_decompress() local
406 bits[c] = data_in[c]; in jffs2_dynrubin_decompress()
408 rubin_do_decompress(256, bits, data_in+8, cpage_out, sourcelen-8, in jffs2_dynrubin_decompress()