Add files via upload

This commit is contained in:
vxunderground 2021-05-28 23:51:51 -05:00 committed by GitHub
parent 192edbf3ea
commit c7ebe7cb0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,10 @@
DWORD HashStringSdbmA(PCHAR String)
{
ULONG Hash = 0;
INT c;
while (c = *String++)
Hash = c + (Hash << 6) + (Hash << 16) - Hash;
return Hash;
}

View File

@ -0,0 +1,10 @@
DWORD HashStringSdbmW(PWCHAR String)
{
ULONG Hash = 0;
INT c;
while (c = *String++)
Hash = c + (Hash << 6) + (Hash << 16) - Hash;
return Hash;
}