From 7faedc71bdde1ddbd6479c909f3f7b8fb8abdf63 Mon Sep 17 00:00:00 2001 From: Roy Oursler Date: Wed, 23 May 2018 16:36:39 -0400 Subject: [PATCH] igzip: Rename tzcnt to more accurate tzbytecnt Change-Id: Ifc0b828f50e4c1feaf141e0164749eca3b227996 Signed-off-by: Roy Oursler --- igzip/huffman.h | 4 ++-- igzip/igzip_icf_body.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/igzip/huffman.h b/igzip/huffman.h index 922a3a6..19a44ef 100644 --- a/igzip/huffman.h +++ b/igzip/huffman.h @@ -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; } diff --git a/igzip/igzip_icf_body.c b/igzip/igzip_icf_body.c index 79fd8e2..18c4165 100644 --- a/igzip/igzip_icf_body.c +++ b/igzip/igzip_icf_body.c @@ -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;