@@ -170,7 +170,7 @@ do {\
170
170
} while(0)
171
171
172
172
/* Finalize a hash. To match the original Murmur3_128x86 the total_length must be provided */
173
- void PMurHash128x86_Result (const uint32_t * ph , const uint32_t * pcarry , uint32_t total_length , uint32_t * out )
173
+ void PMurHash128x86_Result (const uint32_t ph [ 4 ] , const uint32_t pcarry [ 4 ] , uint32_t total_length , uint32_t out [ 4 ] )
174
174
{
175
175
uint32_t h1 = ph [0 ];
176
176
uint32_t h2 = ph [1 ];
@@ -240,7 +240,7 @@ void PMurHash128x86_Result(const uint32_t *ph, const uint32_t *pcarry, uint32_t
240
240
241
241
/* Main hashing function. Initialise carry[4] to {0,0,0,0} and h[4] to an initial {seed,seed,seed,seed}
242
242
* if wanted. Both ph and pcarry are required arguments. */
243
- void PMurHash128x86_Process (uint32_t * const ph , uint32_t * const pcarry , const void * const key , int len )
243
+ void PMurHash128x86_Process (uint32_t ph [ 4 ] , uint32_t pcarry [ 4 ] , const void * const key , int len )
244
244
{
245
245
uint32_t h1 = ph [0 ];
246
246
uint32_t h2 = ph [1 ];
@@ -480,8 +480,8 @@ do {\
480
480
} while(0)
481
481
482
482
/* Finalize a hash. To match the original Murmur3_128x64 the total_length must be provided */
483
- void PMurHash128x64_Result (const uint64_t * const ph , const uint64_t * const pcarry ,
484
- const uint32_t total_length , uint64_t * const out )
483
+ void PMurHash128x64_Result (const uint64_t ph [ 2 ] , const uint64_t pcarry [ 2 ] ,
484
+ const uint32_t total_length , uint64_t out [ 2 ] )
485
485
{
486
486
uint64_t h1 = ph [0 ];
487
487
uint64_t h2 = ph [1 ];
@@ -523,7 +523,7 @@ void PMurHash128x64_Result(const uint64_t * const ph, const uint64_t * const pca
523
523
524
524
/* Main hashing function. Initialise carry[2] to {0,0} and h[2] to an initial {seed,seed}
525
525
* if wanted. Both ph and pcarry are required arguments. */
526
- void PMurHash128x64_Process (uint64_t * const ph , uint64_t * const pcarry , const void * const key , int len )
526
+ void PMurHash128x64_Process (uint64_t ph [ 2 ] , uint64_t pcarry [ 2 ] , const void * const key , int len )
527
527
{
528
528
uint64_t h1 = ph [0 ];
529
529
uint64_t h2 = ph [1 ];
0 commit comments