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:
Roy Oursler 2018-05-23 16:36:39 -04:00 committed by Greg Tucker
parent 3732485914
commit 7faedc71bd
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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;