From 359a0673ad37fef2c8419dc6ab6c1f4f6c8a954b Mon Sep 17 00:00:00 2001 From: Oneric Date: Wed, 13 Oct 2021 01:27:31 +0200 Subject: Move the cache function to ass_cache.c --- libass/ass_utils.h | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'libass/ass_utils.h') diff --git a/libass/ass_utils.h b/libass/ass_utils.h index 4789179..5418ee6 100644 --- a/libass/ass_utils.h +++ b/libass/ass_utils.h @@ -182,28 +182,6 @@ static inline int double_to_d22(double x) return lrint(x * 0x400000); } -#define FNV1_32A_INIT 0x811c9dc5U -#define FNV1_32A_PRIME 16777619U - -static inline uint32_t fnv_32a_buf(const void *buf, size_t len, uint32_t hval) -{ - if (!len) - return hval; - - const uint8_t *bp = buf; - size_t n = (len + 3) / 4; - - switch (len % 4) { - case 0: do { hval ^= *bp++; hval *= FNV1_32A_PRIME; //-fallthrough - case 3: hval ^= *bp++; hval *= FNV1_32A_PRIME; //-fallthrough - case 2: hval ^= *bp++; hval *= FNV1_32A_PRIME; //-fallthrough - case 1: hval ^= *bp++; hval *= FNV1_32A_PRIME; - } while (--n > 0); - } - - return hval; -} - static inline int mystrtoi(char **p, int *res) { char *start = *p; -- cgit v1.2.3