Searched defs:hashbits (Results 1 - 7 of 7) sorted by relevance

/external/chromium_org/third_party/smhasher/src/
H A DBitslice.cpp57 const int hashbits = hashbytes * 8; local
61 slices.resize(hashbits);
68 for(int j = 0; j < hashbits; j++)
H A DAvalancheTest.h34 const int hashbits = hashbytes * 8; local
55 for(int iOut = 0; iOut < hashbits; iOut++)
77 const int hashbits = hashbytes * 8; local
79 printf("Testing %3d-bit keys -> %3d-bit hashes, %8d reps",keybits,hashbits,reps);
83 std::vector<int> bins(keybits*hashbits,0);
117 const int hashbits = hashbytes * 8; local
119 std::vector<int> bins(hashbits*hashbits*4,0);
139 for(int out1 = 0; out1 < hashbits; out1++)
140 for(int out2 = 0; out2 < hashbits; out
244 const int hashbits = hashbytes * 8; local
352 const int hashbits = hashbytes * 8; local
[all...]
H A DDifferentialTest.h136 const int hashbits = sizeof(hashtype) * 8; local
140 double expected = testcount / pow(2.0,double(hashbits));
149 printf("Testing %0.f up-to-%d-bit differentials in %d-bit keys -> %d bit hashes.\n",diffcount,diffbits,keybits,hashbits);
H A DKeysetTest.cpp13 bool VerificationTest ( pfHash hash, const int hashbits, uint32_t expected, bool verbose ) argument
15 const int hashbytes = hashbits / 8;
74 bool SanityTest ( pfHash hash, const int hashbits )
82 const int hashbytes = hashbits/8;
162 void AppendedZeroesTest ( pfHash hash, const int hashbits )
168 const int hashbytes = hashbits/8;
H A DStats.h112 const int hashbits = sizeof(hashtype) * 8; local
131 for(int start = 0; start < hashbits; start++)
303 const int hashbits = nbytes * 8; local
311 for(int a = 0; a < hashbits; a++)
317 for(int b = 0; b < hashbits; b++)
356 const int hashbits = sizeof(hashtype) * 8; local
364 for(int start = 0; start < hashbits; start += 8)
385 davg /= double(hashbits/8);
H A Dmain.cpp38 int hashbits; member in struct:HashInfo
106 pass &= VerificationTest(info->hash,info->hashbits,info->verification,false);
118 pass &= VerificationTest(info->hash,info->hashbits,info->verification,true);
130 const int hashbits = sizeof(hashtype) * 8; local
142 VerificationTest(hash,hashbits,info->verification,true);
143 SanityTest(hash,hashbits);
144 AppendedZeroesTest(hash,hashbits);
434 result &= WindowedKeyTest< Blob<hashbits*2>, hashtype > ( hash, 20, testCollision, testDistribution, drawDiagram );
508 g_outputVCode = MurmurOAAT(out,g_hashUnderTest->hashbits/8,g_outputVCode);
526 if(pInfo->hashbits
[all...]
/external/guava/guava-tests/test/com/google/common/hash/
H A DHashTestUtils.java46 static void verifyHashFunction(HashFn hashFunction, int hashbits, int expected) { argument
47 int hashBytes = hashbits / 8;

Completed in 182 milliseconds