mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 14:19:02 +00:00
Hash: Narrow define scope
This commit is contained in:
parent
6004ecc521
commit
310bb46967
1 changed files with 1 additions and 1 deletions
|
@ -43,10 +43,10 @@ u32 HashFletcher(const u8* data_u8, size_t length)
|
||||||
|
|
||||||
// Implementation from Wikipedia
|
// Implementation from Wikipedia
|
||||||
// Slightly slower than Fletcher above, but slightly more reliable.
|
// Slightly slower than Fletcher above, but slightly more reliable.
|
||||||
#define MOD_ADLER 65521
|
|
||||||
// data: Pointer to the data to be summed; len is in bytes
|
// data: Pointer to the data to be summed; len is in bytes
|
||||||
u32 HashAdler32(const u8* data, size_t len)
|
u32 HashAdler32(const u8* data, size_t len)
|
||||||
{
|
{
|
||||||
|
static const u32 MOD_ADLER = 65521;
|
||||||
u32 a = 1, b = 0;
|
u32 a = 1, b = 0;
|
||||||
|
|
||||||
while (len)
|
while (len)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue