change GetPixPairHash64() return type to uint32_t

Change-Id: Ibb61c1631d7a4bcda5417b5a85864d5e2c3f3858
This commit is contained in:
Pascal Massimino 2015-04-16 00:55:25 -07:00
parent ec1fb9f8dd
commit 7fa67c9b9e

View File

@ -216,7 +216,7 @@ void VP8LHashChainClear(VP8LHashChain* const p) {
#define HASH_MULTIPLIER_HI (0xc6a4a793U) #define HASH_MULTIPLIER_HI (0xc6a4a793U)
#define HASH_MULTIPLIER_LO (0x5bd1e996U) #define HASH_MULTIPLIER_LO (0x5bd1e996U)
static WEBP_INLINE uint64_t GetPixPairHash64(const uint32_t* const argb) { static WEBP_INLINE uint32_t GetPixPairHash64(const uint32_t* const argb) {
uint32_t key; uint32_t key;
key = argb[1] * HASH_MULTIPLIER_HI; key = argb[1] * HASH_MULTIPLIER_HI;
key += argb[0] * HASH_MULTIPLIER_LO; key += argb[0] * HASH_MULTIPLIER_LO;
@ -227,7 +227,7 @@ static WEBP_INLINE uint64_t GetPixPairHash64(const uint32_t* const argb) {
// Insertion of two pixels at a time. // Insertion of two pixels at a time.
static void HashChainInsert(VP8LHashChain* const p, static void HashChainInsert(VP8LHashChain* const p,
const uint32_t* const argb, int pos) { const uint32_t* const argb, int pos) {
const uint64_t hash_code = GetPixPairHash64(argb); const uint32_t hash_code = GetPixPairHash64(argb);
p->chain_[pos] = p->hash_to_first_index_[hash_code]; p->chain_[pos] = p->hash_to_first_index_[hash_code];
p->hash_to_first_index_[hash_code] = pos; p->hash_to_first_index_[hash_code] = pos;
} }