Home
last modified time | relevance | path

Searched refs:hashbytes (Results 1 – 4 of 4) sorted by relevance

/external/jemalloc/test/unit/
Dhash.c65 const size_t hashbytes = hash_variant_bits(variant) / 8; in hash_variant_verify() local
67 VARIABLE_ARRAY(uint8_t, hashes, hashbytes * 256); in hash_variant_verify()
68 VARIABLE_ARRAY(uint8_t, final, hashbytes); in hash_variant_verify()
86 memcpy(&hashes[i*hashbytes], &out, hashbytes); in hash_variant_verify()
91 memcpy(&hashes[i*hashbytes], out, hashbytes); in hash_variant_verify()
96 memcpy(&hashes[i*hashbytes], out, hashbytes); in hash_variant_verify()
105 uint32_t out = hash_x86_32(hashes, hashbytes*256, 0); in hash_variant_verify()
110 hash_x86_128(hashes, hashbytes*256, 0, out); in hash_variant_verify()
115 hash_x64_128(hashes, hashbytes*256, 0, out); in hash_variant_verify()
/external/chromium_org/third_party/smhasher/src/
DKeysetTest.cpp15 const int hashbytes = hashbits / 8; in VerificationTest() local
18 uint8_t * hashes = new uint8_t[hashbytes * 256]; in VerificationTest()
19 uint8_t * final = new uint8_t[hashbytes]; in VerificationTest()
22 memset(hashes,0,hashbytes*256); in VerificationTest()
23 memset(final,0,hashbytes); in VerificationTest()
32 hash(key,i,256-i,&hashes[i*hashbytes]); in VerificationTest()
37 hash(hashes,hashbytes*256,0,final); in VerificationTest()
82 const int hashbytes = hashbits/8; in SanityTest() local
91 uint8_t * hash1 = new uint8_t[hashbytes]; in SanityTest()
92 uint8_t * hash2 = new uint8_t[hashbytes]; in SanityTest()
[all …]
DAvalancheTest.h31 const int hashbytes = sizeof(hashtype); in calcBias() local
34 const int hashbits = hashbytes * 8; in calcBias()
57 int bitA = getbit(&A,hashbytes,iOut); in calcBias()
58 int bitB = getbit(&B,hashbytes,iOut); in calcBias()
74 const int hashbytes = sizeof(hashtype); in AvalancheTest() local
77 const int hashbits = hashbytes * 8; in AvalancheTest()
116 const int hashbytes = sizeof(hashtype); in BicTest() local
117 const int hashbits = hashbytes * 8; in BicTest()
243 const int hashbytes = sizeof(hashtype); variable
244 const int hashbits = hashbytes * 8;
[all …]
DBitslice.cpp56 const int hashbytes = sizeof(hashtype); in Bitslice() local
57 const int hashbits = hashbytes * 8; in Bitslice()