• Home
  • Raw
  • Download

Lines Matching refs:num_bits

99 static inline u64 IO_read_bits(istream_t *const in, const int num_bits);
101 static inline void IO_rewind_bits(istream_t *const in, const int num_bits);
137 static inline u64 read_bits_LE(const u8 *src, const int num_bits,
163 u8 *num_bits; member
211 u8 *num_bits; member
1511 dst->num_bits = malloc(size); in HUF_copy_dtable()
1512 if (!dst->symbols || !dst->num_bits) { in HUF_copy_dtable()
1517 memcpy(dst->num_bits, src->num_bits, size); in HUF_copy_dtable()
1530 dst->num_bits = malloc(size); in FSE_copy_dtable()
1532 if (!dst->symbols || !dst->num_bits || !dst->new_state_base) { in FSE_copy_dtable()
1537 memcpy(dst->num_bits, src->num_bits, size); in FSE_copy_dtable()
1592 static inline u64 IO_read_bits(istream_t *const in, const int num_bits) { in IO_read_bits() argument
1593 if (num_bits > 64 || num_bits <= 0) { in IO_read_bits()
1597 const size_t bytes = (num_bits + in->bit_offset + 7) / 8; in IO_read_bits()
1598 const size_t full_bytes = (num_bits + in->bit_offset) / 8; in IO_read_bits()
1603 const u64 result = read_bits_LE(in->ptr, num_bits, in->bit_offset); in IO_read_bits()
1605 in->bit_offset = (num_bits + in->bit_offset) % 8; in IO_read_bits()
1614 static inline void IO_rewind_bits(istream_t *const in, int num_bits) { in IO_rewind_bits() argument
1615 if (num_bits < 0) { in IO_rewind_bits()
1620 const int new_offset = in->bit_offset - num_bits; in IO_rewind_bits()
1726 static inline u64 read_bits_LE(const u8 *src, const int num_bits, in read_bits_LE() argument
1728 if (num_bits > 64) { in read_bits_LE()
1738 int left = num_bits; in read_bits_LE()
1796 const u8 bits = dtable->num_bits[*state]; in HUF_decode_symbol()
1920 table->num_bits = malloc(table_size); in HUF_init_dtable()
1922 if (!table->symbols || !table->num_bits) { in HUF_init_dtable()
1924 free(table->num_bits); in HUF_init_dtable()
1938 memset(&table->num_bits[rank_idx[i]], i, rank_idx[i - 1] - rank_idx[i]); in HUF_init_dtable()
2003 free(dtable->num_bits); in HUF_free_dtable()
2023 const u8 bits = dtable->num_bits[*state]; in FSE_update_state()
2120 dtable->num_bits = malloc(size * sizeof(u8)); in FSE_init_dtable()
2123 if (!dtable->symbols || !dtable->num_bits || !dtable->new_state_base) { in FSE_init_dtable()
2184 dtable->num_bits[i] = (u8)(accuracy_log - highest_set_bit(next_state_desc)); in FSE_init_dtable()
2188 ((u16)next_state_desc << dtable->num_bits[i]) - size; in FSE_init_dtable()
2299 dtable->num_bits = malloc(sizeof(u8)); in FSE_init_dtable_rle()
2302 if (!dtable->symbols || !dtable->num_bits || !dtable->new_state_base) { in FSE_init_dtable_rle()
2309 dtable->num_bits[0] = 0; in FSE_init_dtable_rle()
2316 free(dtable->num_bits); in FSE_free_dtable()