mirror of
https://github.com/intel/isa-l.git
synced 2025-01-31 10:31:12 +01:00
igzip: Rename tzcnt to more accurate tzbytecnt
Change-Id: Ifc0b828f50e4c1feaf141e0164749eca3b227996 Signed-off-by: Roy Oursler <roy.j.oursler@intel.com>
This commit is contained in:
parent
3732485914
commit
7faedc71bd
@ -55,7 +55,7 @@ static inline uint32_t bsr(uint32_t val)
|
||||
return msb;
|
||||
}
|
||||
|
||||
static inline uint32_t tzcnt(uint64_t val)
|
||||
static inline uint32_t tzbytecnt(uint64_t val)
|
||||
{
|
||||
uint32_t cnt;
|
||||
|
||||
@ -243,7 +243,7 @@ static inline int compare258(uint8_t * str1, uint8_t * str2, uint32_t max_length
|
||||
test = *(uint64_t *) str1;
|
||||
test ^= *(uint64_t *) str2;
|
||||
if(test != 0)
|
||||
return count + tzcnt(test);
|
||||
return count + tzbytecnt(test);
|
||||
str1 += 8;
|
||||
str2 += 8;
|
||||
}
|
||||
|
@ -101,7 +101,7 @@ void gen_icf_map_h1_base(struct isal_zstream *stream,
|
||||
next_bytes = *(uint64_t *) next_in;
|
||||
match = next_bytes ^ match_bytes;
|
||||
|
||||
len = tzcnt(match);
|
||||
len = tzbytecnt(match);
|
||||
|
||||
if (len >= SHORTEST_MATCH) {
|
||||
len += LEN_OFFSET;
|
||||
|
Loading…
x
Reference in New Issue
Block a user