uppsrc: In preparation to move to 64 bit hash codes, hash code type is now hash_t (replaces unsigned, dword)

git-svn-id: svn://ultimatepp.org/upp/trunk@14521 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-05-31 16:13:28 +00:00
parent e3fccbf058
commit e21fe262af
38 changed files with 163 additions and 156 deletions

View file

@ -391,7 +391,7 @@ struct CharEntry {
CharEntry fc_cache_global[4093];
inline dword GlyphHash(Font font, int chr)
inline hash_t GlyphHash(Font font, int chr)
{
return FoldHash(CombineHash(font.GetHashValue(), chr));
}
@ -455,7 +455,7 @@ thread_local FontEntry fi_cache[63];
const CommonFontInfo& GetFontInfo(Font font)
{
font.RealizeStd();
unsigned hash = FoldHash(font.GetHashValue()) % 63;
dword hash = FoldHash(font.GetHashValue()) % 63;
FontEntry& e = fi_cache[hash];
if(e.font != font.AsInt64()) {
Mutex::Lock __(sFontLock);