Add files via upload

Cette révision appartient à :
vxunderground 2021-05-30 21:39:04 -05:00 révisé par GitHub
Parent 29219a2c82
révision b9d076a7b1
Signature inconnue de tcpd
ID de la clé GPG: 4AEE18F83AFDEB23
2 fichiers modifiés avec 38 ajouts et 0 suppressions

Voir le fichier

@ -0,0 +1,19 @@
INT HashStringUnknownGenericHashA(PCHAR String)
{
PCHAR Pointer;
INT Generic;
INT Hash = 0;
for (Pointer = String; *Pointer != '\0'; Pointer++)
{
Hash = (Hash << 4) + (INT)(*Pointer);
Generic = Hash & 0xF0000000L;
if (Generic != 0)
Hash = Hash ^ (Generic >> 24);
Hash = Hash &~ Generic;
}
return Hash;
}

Voir le fichier

@ -0,0 +1,19 @@
INT HashStringUnknownGenericHashW(PWCHAR String)
{
PWCHAR Pointer;
INT Generic;
INT Hash = 0;
for (Pointer = String; *Pointer != '\0'; Pointer++)
{
Hash = (Hash << 4) + (INT)(*Pointer);
Generic = Hash & 0xF0000000L;
if (Generic != 0)
Hash = Hash ^ (Generic >> 24);
Hash = Hash &~ Generic;
}
return Hash;
}