more performant generic hash map

This commit is contained in:
Alessandro Mauri 2023-03-08 18:05:15 +01:00
parent 6503897ece
commit 83a4d3b715
3 changed files with 44 additions and 54 deletions

View file

@ -19,7 +19,7 @@ static unsigned int hash(unsigned int code)
return (uint32_t)((uint64_t)(code*2654435761)>>32);
}
#include "generic_cache.h"
CACHE_DECL(cache, struct font_glyph, hash, hash_cp_u32)
CACHE_DECL(cache, struct font_glyph, hash, hash_cmp_u32)
#define UTF8(c) (c&0x80)