unsigned sym;
adjusted_len = length - XPRESS_MIN_MATCH_LEN;
- log2_offset = fls32(offset);
+ log2_offset = bsr32(offset);
len_hdr = min(0xF, adjusted_len);
sym = XPRESS_NUM_CHARS + ((log2_offset << 4) | len_hdr);
{
unsigned adjusted_len = length - XPRESS_MIN_MATCH_LEN;
unsigned len_hdr = min(adjusted_len, 0xF);
- unsigned log2_offset = fls32(offset);
+ unsigned log2_offset = bsr32(offset);
unsigned sym = XPRESS_NUM_CHARS + ((log2_offset << 4) | len_hdr);
c->freqs[sym]++;
unsigned sym;
adjusted_len = length - XPRESS_MIN_MATCH_LEN;
- log2_offset = fls32(offset);
+ log2_offset = bsr32(offset);
len_hdr = min(0xF, adjusted_len);
sym = XPRESS_NUM_CHARS + ((log2_offset << 4) | len_hdr);
u32 offset_cost;
offset = match->offset;
- log2_offset = fls32(offset);
+ log2_offset = bsr32(offset);
offset_cost = log2_offset;
do {
unsigned len_hdr;
u32 offset_cost;
offset = match->offset;
- log2_offset = fls32(offset);
+ log2_offset = bsr32(offset);
offset_cost = log2_offset;
do {
unsigned adjusted_len;