mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-11 14:22:58 -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
|
|
@ -52,10 +52,10 @@ bool String0::LEq(const String0& s) const
|
|||
return l == s.GetCount() && inline_memeq8_aligned(begin(), s.begin(), l);
|
||||
}
|
||||
|
||||
unsigned String0::LHashValue() const
|
||||
hash_t String0::LHashValue() const
|
||||
{
|
||||
int l = LLen();
|
||||
if(l < 15) {
|
||||
if(l < 15) { // must be the same as small hash
|
||||
dword w[4];
|
||||
w[0] = w[1] = w[2] = w[3] = 0;
|
||||
memcpy8((char *)w, ptr, l);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue