Skip to content

Commit 5962cb7

Browse files
authored
Merge pull request #72 from cmuratori/revert-71-master
Revert "Add const qualifier to void* input parameters"
2 parents 13b994a + aeb07a2 commit 5962cb7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

meow_hash_x64_aesni.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ static meow_u8 MeowDefaultSeed[128] =
256256
//
257257

258258
static meow_u128
259-
MeowHash(const void *Seed128Init, meow_umm Len, const void *SourceInit)
259+
MeowHash(void *Seed128Init, meow_umm Len, void *SourceInit)
260260
{
261261
meow_u128 xmm0, xmm1, xmm2, xmm3, xmm4, xmm5, xmm6, xmm7; // NOTE(casey): xmm0-xmm7 are the hash accumulation lanes
262262
meow_u128 xmm8, xmm9, xmm10, xmm11, xmm12, xmm13, xmm14, xmm15; // NOTE(casey): xmm8-xmm15 hold values to be appended (residual, length)
@@ -459,7 +459,7 @@ typedef struct meow_state
459459
} meow_state;
460460

461461
static void
462-
MeowBegin(meow_state *State, const void *Seed128)
462+
MeowBegin(meow_state *State, void *Seed128)
463463
{
464464
meow_u8 *rcx = (meow_u8 *)Seed128;
465465

@@ -539,7 +539,7 @@ MeowAbsorbBlocks(meow_state *State, meow_umm BlockCount, meow_u8 *rax)
539539
}
540540

541541
static void
542-
MeowAbsorb(meow_state *State, meow_umm Len, const void *SourceInit)
542+
MeowAbsorb(meow_state *State, meow_umm Len, void *SourceInit)
543543
{
544544
State->TotalLengthInBytes += Len;
545545
meow_u8 *Source = (meow_u8 *)SourceInit;
@@ -725,7 +725,7 @@ MeowEnd(meow_state *State, meow_u8 *Store128)
725725
//
726726

727727
static void
728-
MeowExpandSeed(meow_umm InputLen, const void *Input, meow_u8 *SeedResult)
728+
MeowExpandSeed(meow_umm InputLen, void *Input, meow_u8 *SeedResult)
729729
{
730730
meow_state State;
731731
meow_u64 LengthTab = (meow_u64)InputLen; // NOTE(casey): We need to always injest 8-byte lengths exactly, even on 32-bit builds, to ensure identical results

0 commit comments

Comments
 (0)