mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
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:
parent
e3fccbf058
commit
e21fe262af
38 changed files with 163 additions and 156 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue