@@ -241,7 +241,7 @@ enum {CLHASH_DEBUG=0};
241241
242242// For use with CLHASH
243243// we expect length to have value 128 or, at least, to be divisible by 4.
244- static __m128i __clmulhalfscalarproductwithoutreduction (const __m128i * randomsource , const uint64_t * string ,
244+ static __m128i clmulhalfscalarproductwithoutreduction (const __m128i * randomsource , const uint64_t * string ,
245245 const size_t length ) {
246246 assert (((uintptr_t ) randomsource & 15 ) == 0 );// we expect cache line alignment for the keys
247247 // we expect length = 128, so we need 16 cache lines of keys and 16 cache lines of strings.
@@ -422,12 +422,12 @@ uint64_t clhash(const void* random, const char * stringbyte,
422422 const uint64_t * string = (const uint64_t * ) stringbyte ;
423423 if (m < lengthinc ) { // long strings // modified from length to lengthinc to address issue #3 raised by Eik List
424424 /* First block initializes accumulator directly. */
425- __m128i acc = __clmulhalfscalarproductwithoutreduction (rs64 , string ,m );
425+ __m128i acc = clmulhalfscalarproductwithoutreduction (rs64 , string ,m );
426426 size_t t = m ;
427427 for (; t + m <= length ; t += m ) {
428428 // Horner-like fold: acc <- polyvalue * acc XOR block_hash
429429 acc = mul128by128to128_lazymod127 (polyvalue ,acc );
430- const __m128i h1 = __clmulhalfscalarproductwithoutreduction (rs64 , string + t ,m );
430+ const __m128i h1 = clmulhalfscalarproductwithoutreduction (rs64 , string + t ,m );
431431 acc = _mm_xor_si128 (acc ,h1 );
432432 }
433433 const int remain = length - t ; // number of completely filled words
0 commit comments